-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
57 lines (57 loc) · 1.31 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
53
54
55
56
57
{
"extends": ["airbnb"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-export-default-from"]
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"plugins": ["react"],
"rules": {
"no-underscore-dangle": "off",
"react/destructuring-assignment": "off",
"react/no-unused-prop-types": "off", // We dynamically create event handlers and we verify them as function prop types, eslint does not detect them so turning this off
"no-param-reassign": "off",
"react/jsx-filename-extension": "off",
"react/require-default-props": "off",
"no-prototype-builtins": "off",
"jsx-a11y/label-has-associated-control": [
2,
{
"assert": "either",
"controlComponents": ["Form.Field"],
"depth": 3
}
],
"jsx-a11y/label-has-for": "off",
"max-len": "off",
"object-curly-newline": "off",
"jsx-a11y/anchor-is-valid": [
1,
{
"aspects": ["invalidHref", "preferButton"]
}
],
"react/button-has-type": "off",
"react/jsx-one-expression-per-line": [
1,
{
"allow": "single-child"
}
],
"react/forbid-prop-types": [
1,
{
"forbid": ["any", "array"]
}
],
"react/jsx-props-no-spreading": "off"
}
}