-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc
73 lines (72 loc) · 1.93 KB
/
.eslintrc
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
64
65
66
67
68
69
70
71
72
73
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"node": true,
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"plugins": [
"prettier",
"jsx-a11y",
"simple-import-sort",
"@typescript-eslint/eslint-plugin"
],
"rules": {
"no-console": ["error"],
"react/prop-types": 0,
"@typescript-eslint/default-param-last": ["error"],
"simple-import-sort/imports": [
"error",
{
"groups": [
// Packages.
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
["^@?\\w"],
// Absolute imports and other imports such as Vue-style `@/foo`.
// Anything that does not start with a dot.
["^[^.]"],
// Side effect imports.
["^\\u0000"],
// Relative imports.
// Anything that starts with a dot.
["^\\."]
]
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "local",
"varsIgnorePattern": ""
}
],
"jsx-a11y/no-autofocus": 2
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}