-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.json
75 lines (75 loc) · 1.82 KB
/
.eslintrc.json
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
74
75
{
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"env": {
"jest": true
},
"parser": "@babel/eslint-parser",
"rules": {
"strict": 0,
"import/no-extraneous-dependencies": 0,
"react/forbid-prop-types": 0,
"react/function-component-definition": 0,
"react/jsx-props-no-spreading": 0,
"prefer-object-spread": 0,
"class-methods-use-this": 0,
"jsx-a11y/label-has-for": [
2,
{
"components": ["Label"],
"required": {
"some": ["nesting", "id"]
},
"allowChildren": false
}
],
"jsx-a11y/label-has-associated-control": [
2,
{
"controlComponents": ["Toggle"],
"depth": 3
}
],
"no-underscore-dangle": 0,
"no-unused-expressions": [
"error",
{
"allowTaggedTemplates": true
}
],
"react/prefer-stateless-function": ["off", { "extensions": [".d.ts"] }],
"no-undef": ["off", { "extensions": [".d.ts"] }],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"import/prefer-default-export": ["off", { "extensions": [".js"] }],
"react/prop-types": ["off", { "extensions": [".stories.jsx"] }],
"react/require-default-props": [
"error",
{
"functions": "defaultArguments"
}
]
},
"globals": {
"window": true,
"document": true
},
"overrides": [
{
"files": "*.d.ts",
"excludedFiles": ["*.js, *.jsx"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"import/extensions": ["error", "ignorePackages", { "ts": "never" }]
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}
]
}