-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
61 lines (61 loc) · 2.17 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true,
"modules": true
}
},
"extends": [
"airbnb"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "config/webpack/base.js"
}
}
},
"plugins": [ "react" ],
"env": {
"browser" : true,
"node" : true,
"es6" : true,
"mocha" : true
},
"globals": {
"__BASENAME__" : false,
"__DEV__" : false,
"__TEST__" : false,
"__PROD__" : false,
"__COVERAGE__" : false,
"__APP_VERSION__" : false,
"__API_VERSION__" : false,
"__API_URL__" : false,
"__API_PATH__" : false
},
"rules": {
"react/jsx-no-bind": ["warn", { "allowArrowFunctions": true, "allowBind": false, "allowFunctions": false, "ignoreRefs": false }],
"implicit-arrow-linebreak": 0,
"newline-per-chained-call": [2, { "ignoreChainWithDepth" : 2 }],
"object-curly-newline": [2, { "consistent": true }],
"no-else-return": [2, { "allowElseIf" : true }],
"arrow-parens": 0,
"react/jsx-closing-bracket-location": [1, { "nonEmpty" : "after-props", "selfClosing": "tag-aligned" }],
"no-underscore-dangle": 0,
"comma-dangle": 0,
"max-len": [1, 120, 2, { "ignoreComments": true} ],
"key-spacing": [0, { "align": "value" }],
"jsx-quotes": [2, "prefer-single"],
"no-multi-spaces": ["error", { "exceptions": { "VariableDeclarator": true, "ImportDeclaration" : true } }],
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never", "asyncArrow" : "always"}],
"semi": [2, "always" ],
"react/no-typos": "error",
"no-console": "warn",
"no-unused-vars": ["error", { "args" : "none" }],
"react/jsx-filename-extension": 0
}
}