-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
63 lines (63 loc) · 1.59 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
{
"parser": "@babel/eslint-parser",
"extends": ["airbnb", "eslint-config-prettier"],
"plugins": ["jest"],
"rules": {
"max-len": [1, 120, 2, { "ignoreComments": true }],
"import/no-unresolved": "off",
"arrow-body-style": "off",
"no-plusplus": "off",
"no-void": "off",
"func-names": "off",
"react/forbid-prop-types": "off",
"react/no-array-index-key": "off",
"jsx-a11y/click-events-have-key-events": "off",
"react/jsx-props-no-spreading": "off",
"react/button-has-type": "off",
"no-use-before-define": "off",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"jsx-a11y/label-has-associated-control": [ "error", {
"required": {
"some": [ "nesting", "id" ]
}
}],
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-for": [ "error", {
"required": {
"some": [ "nesting", "id" ]
}
}],
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
},
"env": {
"browser": true
},
"overrides": [
{
"files": [
"**/*.test.js",
"**/*.test.jsx"
],
"env": {
"jest": true
}
},
{
"files": "**/*.+(ts|tsx)",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint/eslint-plugin"],
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier"
]
}
]
}