-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.js
56 lines (56 loc) · 1.76 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
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"globals": {
"jQuery": true,
"require": true,
"batch": true
},
"rules": {
"array-bracket-spacing": [ "error", "always" ],
"brace-style" : [ "error", "1tbs" ],
"camelcase": [ "warn", { "properties": "never" } ],
"computed-property-spacing": [ "error", "always" ],
"curly" : "error",
"eol-last": "error",
"eqeqeq": "error",
"indent": [ 1, "tab" ],
"keyword-spacing": "error",
"linebreak-style": [ "error", "unix" ],
"no-caller": "error",
"no-eq-null": "error",
"no-else-return": "warn",
"no-mixed-spaces-and-tabs": [1, "smart-tabs"],
"no-nested-ternary": "error",
"no-shadow": "error",
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"no-unused-expressions": "error",
"no-unused-vars": "error",
"object-curly-spacing": [ "error", "always" ],
"quotes": [ "error", "single" ],
"react/no-direct-mutation-state" : "off",
"react/jsx-curly-spacing": [ 1, "always" ],
"react/jsx-space-before-closing" : "warn",
"semi": [ "error", "always" ],
"semi-spacing": "warn",
"space-before-blocks" : "error",
"space-before-function-paren" : "error",
"space-in-parens" : [ "error", "always" ],
"wrap-iife": [ "error", "any" ],
"yoda": [ "warn", "always" ]
}
};