-
Notifications
You must be signed in to change notification settings - Fork 27
/
.eslintrc.json
41 lines (41 loc) · 1.16 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
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"prettier"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"requireConfigFile": false,
"ecmaVersion": 8,
"sourceType": "module"
},
"plugins": [
"react",
"prettier"
],
"rules": {
"no-console": "warn",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"no-unused-vars": "warn",
"no-nested-ternary": "off",
"import/prefer-default-export": "warn",
"react/no-array-index-key": "warn",
"react/jsx-props-no-spreading": [1, { "exceptions": ["button"] }],
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/interactive-supports-focus": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"prettier/prettier": "error",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
}
}