-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
executable file
·109 lines (97 loc) · 2.79 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"plugins": [
"react"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"extends": "eslint:recommended",
"env": {
"browser": true,
"jasmine": true,
"mocha": true,
"es6": true
},
"globals": {
"define": true,
"require" : true
},
"rules": {
"no-extra-parens": 2,
"valid-jsdoc": [2, {"requireReturn": false, "requireParamDescription": false}],
"consistent-return": 2,
"curly": 2,
"default-case": 2,
"dot-location": [2, "property"],
"dot-notation": 2,
"eqeqeq": 2,
"no-case-declarations": 2,
"no-else-return": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-invalid-this": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-native-reassign": 2,
"no-new": 2,
"no-return-assign": 2,
"no-self-compare": 2,
"no-unused-expressions": [2, { "allowShortCircuit": true, "allowTernary": true }],
"no-useless-call": 2,
"no-useless-concat": 2,
"vars-on-top": 2,
"yoda": 2,
"no-shadow-restricted-names": 2,
"no-shadow": 0,
"no-use-before-define": 2,
"callback-return": 2,
"global-require": 2,
"handle-callback-err": 2,
"no-new-require": 2,
"no-path-concat": 2,
"array-bracket-spacing": [2, "never"],
"block-spacing": [2, "always"],
"brace-style": [2, "stroustrup", { "allowSingleLine": true }],
"camelcase": [2, {"properties": "always"}],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "that"],
"func-names": 2,
"func-style": [2, "declaration", { "allowArrowFunctions": true }],
"indent": [2, 2, {"SwitchCase": 1}], /** 2 space indention **/
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"max-len": [2, 128, 4], /** max line width = 128 chars, tabs count as 4 chars **/
"max-nested-callbacks": [2, 5],
"max-params": [2, 5],
"new-cap": 2,
"newline-after-var": [2, "always"],
"no-array-constructor": 2,
"no-bitwise": 2,
"no-lonely-if": 2,
"no-mixed-spaces-and-tabs": 2,
"no-unneeded-ternary": 2,
"object-curly-spacing": [2, "never"],
"one-var": [2, "never"],
"quotes": [2, "single"],
"semi": [2, "never"],
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"quote-props": [2, "as-needed"],
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"no-console": 2,
"no-debugger": 2,
"wrap-iife": 2,
"no-multi-spaces": [2, { "exceptions": { "VariableDeclarator": true } }]
}
}