-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (46 loc) · 1.38 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
module.exports = {
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"settings": {
"import/resolver": {
"webpack": {
config: "./build/resolves.js",
}
}
},
rules: {
"import/no-commonjs": ["error", "always"],
"import/prefer-default-export": 0,
"react/forbid-prop-types": 0,
"react/react-in-jsx-scope": 0,
"react/jsx-filename-extension": 0,
"react/no-deprecated": 0,
"react/no-danger": 0,
"react/jsx-curly-spacing": [2, { "when": "never", "allowMultiline": true }],
"react/prefer-stateless-function": 0,
"react/no-array-index-key": 0,
"react/no-did-mount-set-state": 0,
"react/prop-types": 0,
"jsx-a11y/media-has-caption": 0,
"jsx-a11y/no-noninteractive-element-to-interactive-role": 0,
"jsx-a11y/label-has-for": 0,
"eslint/experimentalDecorators": 0,
"no-nested-ternary": 0,
"function-paren-newline": 0,
"func-names": 0,
"semi": ["error", "always"],
"quotes": ["error", "double"],
"no-console": 0,
"prefer-template": "warn",
"eol-last": 0,
"quote-props": ["error", "as-needed"],
"indent": ["error", 2, { "SwitchCase": 1, "MemberExpression": 1 }],
"no-plusplus": 0,
"no-mixed-operators": ["error", { "allowSamePrecedence": true }],
"no-new": 0,
}
}