-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
68 lines (66 loc) · 2.14 KB
/
.eslintrc.js
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
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
"extends": "airbnb",
"parser": "babel-eslint",
"rules": {
"indent": [2, 4],
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
"react/jsx-filename-extension": [0],
"react/no-danger": [0],
"import/no-extraneous-dependencies": [0],
"import/no-dynamic-require": [0],
"import/extensions": [0],
"camelcase": [0],
"one-var": [0],
"no-nested-ternary": [0],
"brace-style": [2, 'stroustrup'],
"no-confusing-arrow": [0],
"object-property-newline": [2, {"allowMultiplePropertiesPerLine": true}],
"no-shadow": [0],
"global-require": [0],
"no-console": [0, {"allow": ["warn", "error"]}],
"no-restricted-syntax": [0],
"import/no-webpack-loader-syntax": [0],
"import/no-unresolved": [0],
"arrow-parens": [2],
"max-len": [0],
"no-unused-vars": [2, {"args": "none"}],
"consistent-return": [0],
"no-bitwise": [0],
"jsx-a11y/label-has-for": [0],
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
// helper for fixing common lint errors
"func-names": [2],
"import/first": [2],
"import/newline-after-import": [2],
"import/no-mutable-exports": [2],
"import/prefer-default-export": [2],
"react/forbid-prop-types": [2],
"react/jsx-closing-bracket-location": [2],
"react/jsx-no-bind": [2],
"react/no-string-refs": [2],
"react/no-unused-prop-types": [2],
"react/prefer-es6-class": [2],
"react/prefer-stateless-function": [2],
"react/prop-types": [2],
"jsx-a11y/no-static-element-interactions": [2],
"no-param-reassign": [2],
"no-undef": [2],
// babel
"object-curly-spacing": [0],
"babel/object-curly-spacing": [2, 'never'],
},
"plugins": [
"babel",
"react",
"jsx-a11y",
"import",
],
overrides: [
{
files: "**/*spec.js",
env: { "jest": true }
}
]
};