-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
52 lines (51 loc) · 1.7 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
42
43
44
45
46
47
48
49
50
51
52
{
"root": true,
"parser": "babel-eslint",
"extends": [ "airbnb", "airbnb/hooks", "plugin:lodash-fp/recommended" ],
"env": {
"browser": true,
"node": true,
"jest": true
},
"rules": {
"class-methods-use-this": "off",
"guard-for-in": "off",
"no-continue": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-restricted-syntax": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"import/prefer-default-export": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-one-expression-per-line": "off",
"react/require-default-props": "off",
"lodash-fp/no-extraneous-function-wrapping": "off",
"array-bracket-spacing": [ "error", "always" ],
"object-curly-newline": [ "error", {
"ObjectExpression": { "multiline": true, "consistent": true },
"ObjectPattern": { "multiline": true, "consistent": true },
"ImportDeclaration": { "multiline": true, "consistent": true },
"ExportDeclaration": { "multiline": true, "consistent": true }
} ],
"semi": [ "error", "never" ],
"import/order": [
"error",
{
"groups": [ "builtin", "external", "internal", "parent", "sibling", "index" ],
"newlines-between": "always-and-inside-groups"
}
],
"import/no-extraneous-dependencies": [ "error", { "devDependencies": [ "**/*.test.js" ] } ],
"jsx-a11y/label-has-associated-control": [ "error", {
"labelComponents": [],
"labelAttributes": [],
"controlComponents": [],
"assert": "either",
"depth": 25
} ],
"react/jsx-filename-extension": [ "error", { "extensions": [ ".js" ] } ]
}
}