-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
executable file
·71 lines (65 loc) · 1.64 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
70
71
{
"parser": "babel-eslint",
"plugins": ["react"],
"env": {
"browser": true,
"node": true,
"mocha": true
},
"ecmaFeatures" : {
"jsx": true
},
"rules": {
"strict": 2,
"default-case": 2,
"no-self-compare": 2,
"no-else-return": 2,
"no-throw-literal": 2,
"no-void": 2,
"max-params": [1, 3],
"max-depth": [1, 3],
"max-len": [1, 100, 4],
"indent": [1, 2],
"comma-style": [2, "last"],
"brace-style": [2, "1tbs", { "allowSingleLine": false }],
"consistent-this": [2, "DO NOT USE"],
"space-in-brackets": [2, "never"],
"space-before-function-parentheses": [2, "never"],
"space-before-blocks": [2, "always"],
"space-after-keywords": [2, "always"],
"no-var": 2,
"no-new-require": 2,
"no-lonely-if": 2,
"no-nested-ternary": 2,
"no-multiple-empty-lines": [2, {
"max": 1
}],
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-use-before-define": 0,
"quotes": [2, "single"],
"no-multi-spaces": [2, {
"exceptions": {
"Property": true,
"ImportDeclaration": true,
"VariableDeclarator": true,
"AssignmentExpression": true
}
}],
"key-spacing": [2, {
"align": "colon",
"beforeColon": true,
"afterColon": true
}],
"react/jsx-quotes": [1, "double"],
"react/jsx-no-undef": 2,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 0,
"react/no-unknown-property": 2,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react/wrap-multilines": 1
}
}