-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
40 lines (40 loc) · 1.1 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
{
"parser": "babel-eslint",
"extends": "airbnb",
"rules": {
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
"camelcase": [2, { "properties": "always" }],
"no-multiple-empty-lines": [2, {
"max": 1,
"maxBOF": 0,
"maxEOF": 0
}],
"object-curly-newline": [2, {
"ObjectExpression": { "multiline": true },
"ObjectPattern": { "multiline": true },
"ImportDeclaration": "never",
"ExportDeclaration": { "multiline": true }
}],
"import/prefer-default-export": 0,
"import/no-cycle": 0,
"import/no-extraneous-dependencies": [2, { "devDependencies": true }],
"jsx-a11y/label-has-for": 0,
"react/jsx-one-expression-per-line": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"plugins": [
"react",
"react-hooks"
],
"settings": {
"import/resolver": { "babel-module": {} },
"react": { "version": "16.12" }
},
"env": {
"node": true,
"es6": true,
"jest": true,
"browser": true
}
}