-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
46 lines (45 loc) · 1.11 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* Made with ❤️ and adobo by Kurocado Studio
* Copyright (c) 2024. All Rights Reserved.
*
* Learn more about Kurocado Studio: {@link https://www.kurocado.studio}
*
* Explore our open-source projects: {@link https://github.com/kurocado-studio}
*/
import {
eslintBrowserConfig,
eslintReactConfig,
} from '@kurocado-studio/styleguide';
import { defineConfig } from 'eslint-define-config';
export default defineConfig([
...eslintBrowserConfig,
...eslintReactConfig,
{
files: ['*.{ts, tsx}'],
settings: {
'import/resolver': {
alias: {
map: [['~', './app']],
},
typescript: {
project: './tsconfig.json',
},
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
},
{
files: ['vite.config.ts', 'postcss.config.mjs'],
rules: {
'import/default': 'off',
'import/named': 'off',
'import/namespace': 'off',
'import/no-cycle': 'off',
'import/no-default-export': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
},
},
]);