-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
49 lines (45 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
const path = require("path");
module.exports = {
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"settings": {
"import/parser": "babel-eslint",
"import/resolver": {
"webpack": {
config: path.join(__dirname, '/build/webpack.dev.js')
}
}
},
rules: {
"import/no-commonjs": ["error", "always"],
"import/prefer-default-export": 0,
// "import/no-unresolved": 0,
// "import/no-extraneous-dependencies": 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/prop-types": 0,
"jsx-a11y/no-noninteractive-element-to-interactive-role": 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}]
}
}