-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy patheslint.config.mjs
63 lines (62 loc) · 1.34 KB
/
eslint.config.mjs
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import globals from 'globals'
import prettierRecommended from 'eslint-plugin-prettier/recommended'
import emotion from '@emotion/eslint-plugin'
import react from 'eslint-plugin-react'
import tseslint from 'typescript-eslint'
export default tseslint.config(
{
ignores: [
'**/lib/',
'**/dist/',
'**/coverage/',
'**/node_modules/',
'**/stylis.min.js',
'demo/dist',
'site/out'
]
},
tseslint.configs.eslintRecommended,
{
plugins: {
'@emotion': emotion,
react
},
languageOptions: {
parser: tseslint.parser,
globals: {
...globals.browser
}
},
linterOptions: {
reportUnusedDisableDirectives: 0
},
rules: {
camelcase: 0,
'no-template-curly-in-string': 0,
'prefer-const': 0,
'no-unused-vars': 0,
'prettier/prettier': [
'error',
{
parser: 'typescript'
}
],
'react/jsx-curly-brace-presence': 0,
'react/jsx-handler-names': 0,
'react/no-unused-prop-types': 0,
'react/prop-types': 0,
'react/react-in-jsx-scope': 0,
'@emotion/pkg-renaming': 2
}
},
{
files: ['**/*.test.js', '**/__tests__/**'],
ignores: ['**/__fixtures__/*'],
languageOptions: {
globals: {
...globals.jest
}
}
},
prettierRecommended
)