/
.eslintrc
69 lines (69 loc) 路 1.84 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
58
59
60
61
62
63
64
65
66
67
68
69
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"mocha": true,
"node": true
},
"rules": {
"linebreak-style": "off",
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement"
],
"semi": ["error", "never"],
"no-shadow": 0,
"curly": "off",
"object-shorthand": ["error", "always", { "avoidQuotes": false }],
"arrow-parens": ["off"],
"no-confusing-arrow": "off",
"indent": "off",
"consistent-return": "off",
"comma-dangle": "off",
"no-underscore-dangle": [
2,
{ "allow": ["_source", "_score", "_rfi", "_entity", "_delete", "_case"] }
],
"generator-star-spacing": "off",
"import/no-unresolved": "off", // ["error"], temporary
"import/extensions": "off", // temporary
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"import/no-named-as-default": 0,
"no-use-before-define": "off",
"react/jsx-no-bind": "off",
"react/forbid-prop-types": "off",
"react/no-unused-prop-types": "off",
"react/jsx-indent-props": "off",
"react/jsx-closing-bracket-location": "off",
"react/jsx-filename-extension": [
"error",
{ "extensions": [".js", ".jsx"] }
],
"react/prefer-stateless-function": "off",
"react/jsx-wrap-multilines": 0,
"react/jsx-indent": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/aria-role": "off",
"no-unused-vars": [
"error",
{
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
]
},
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.eslint.js"
}
},
"import/extensions": [".js", ".css"]
}
}