forked from karthik2706/adroit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
52 lines (48 loc) · 1.2 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
{
"extends": "airbnb",
"env": {
"browser": true,
"node": true
},
"rules": {
"no-console": 0,
"no-tabs": 0,
"indent": [2, "tab", { "SwitchCase": 1 }],
"comma-dangle": ["error", "never"],
"no-unused-vars": ["error", { "args": "none" }],
"max-len": 0,
"arrow-body-style": 0,
"linebreak-style": 0,
"no-param-reassign": [2, { "props": false }],
"arrow-parens": [0, "as-needed"],
"function-paren-newline": [2, "consistent"],
"strict": 0,
// React Plugin
"react/jsx-indent": [2, "tab"],
"react/jsx-indent-props": [2, "tab"],
"react/prefer-stateless-function": 0,
"react/jsx-filename-extension": 0,
"react/forbid-prop-types": 0,
"class-methods-use-this": 0,
// "react/jsx-max-props-per-line": [2, { "maximum": 2, "when": "always" }],
// "react/jsx-closing-bracket-location": [2, "after-props"],
// Import Plugin
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
"import/no-named-default": 0,
"import/prefer-default-export": 1,
// jsx-a11y
// "jsx-a11y/label-has-for": 0
"jsx-a11y/label-has-for": [
2,
{
"components": ["Label"],
"required": {
"every": ["id"]
},
"allowChildren": false
}
]
}
}