-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
52 lines (50 loc) · 1.48 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
{
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
},
"babelOptions": {
"presets": ["@babel/preset-react"]
},
},
"rules": {
"jsx-a11y/control-has-associated-label": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"prettier/prettier": ["off"],
"class-methods-use-this": "off",
"no-use-before-define": "off",
"react-hooks/exhaustive-deps": "off",
"endOfLine": "off",
"camelcase": "warn",
"react/prop-types": "warn",
"no-plusplus": "off",
"jsx-a11y/no-static-element-interactions": "warn",
"react/jsx-props-no-spreading": "warn",
"react/jsx-no-bind": "warn",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "warn",
"react/function-component-definition": "warn",
"no-unused-vars": "warn",
"dot-notation": "warn",
"object-shorthand": "warn",
"react/no-unused-state": "warn",
"react/no-unescaped-entities": "warn",
"import/order": "warn",
"import/extensions": "warn",
"spaced-comment": "warn",
"import/no-cycle": "warn",
"react/jsx-curly-brace-presence": "warn",
"import/no-named-as-default": 0,
},
"env": {
"browser": true
}
}