-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.eslintrc
More file actions
46 lines (46 loc) · 1.46 KB
/
.eslintrc
File metadata and controls
46 lines (46 loc) · 1.46 KB
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
{
"env": {
"browser": true
},
"extends": ["airbnb", "airbnb/hooks"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"legacyDecorators": true
}
},
"rules": {
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/label-has-associated-control": "off",
"import/prefer-default-export": "off",
"react/no-array-index-key": "off",
"react/state-in-constructor": "off",
"arrow-parens": ["error", "as-needed"],
"react/destructuring-assignment": [1, "always", { "ignoreClassFields": false }],
"react/jsx-props-no-spreading": 1,
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"object-curly-newline": ["error", {
"ObjectExpression": { "multiline": true, "minProperties": 3 },
"ObjectPattern": { "multiline": true, "minProperties": 4 },
"ImportDeclaration": { "multiline": true, "minProperties": 3 },
"ExportDeclaration": { "multiline": true, "minProperties": 4 }
}],
"react/prop-types": 0,
"no-underscore-dangle": 0,
"import/imports-first": ["error", "absolute-first"],
"import/newline-after-import": "error",
"camelcase": 0
},
"parser": "babel-eslint"
}