-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc.json
121 lines (106 loc) · 3.33 KB
/
.eslintrc.json
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
110
111
112
113
114
115
116
117
118
119
120
121
{
"root": true,
"parser": "espree",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script",
"ecmaFeatures": {}
},
"plugins": [],
"env": {
"node": true,
"es6": true
},
"globals": {},
"rules": {
// Possible Errors (fully reviewed 2016-05-04)
"comma-dangle": [2, "never"],
"no-cond-assign": [2, "except-parens"],
"no-console": 0,
"no-constant-condition": 2,
"no-control-regex": 2,
"no-debugger": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty": [2, { "allowEmptyCatch": false }],
"no-empty-character-class": 2,
"no-ex-assign": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": [2, "all"],
"no-extra-semi": 2,
"no-func-assign": 2,
"no-inner-declarations": [2, "both"],
"no-invalid-regexp": 2,
"no-irregular-whitespace": [2, { "skipComments": false }],
"no-negated-in-lhs": 2,
"no-obj-calls": 2,
"no-regex-spaces": 2,
"no-sparse-arrays": 2,
"no-unexpected-multiline": 2,
"no-unreachable": 2,
"no-unsafe-finally": 2,
"use-isnan": 2,
"valid-jsdoc": 0,
"valid-typeof": 2,
// Best Practices
"accessor-pairs": [2, { "setWithoutGet": false, "getWithoutSet": false }],
"no-magic-numbers": [2, { "ignore": [0,1], "ignoreArrayIndexes": true, "enforceConst": true, "detectObjects": true }],
// Strict Mode (fully reviewed 2016-05-04)
"strict": [2, "safe"],
// Variables (fully reviewed 2016-05-04)
"init-declarations": [2, "always"],
"no-catch-shadow": 0,
"no-delete-var": 2,
"no-label-var": 2,
"no-restricted-globals": 0,
"no-shadow": [2, { "builtinGlobals": false, "hoist": "all", "allow": [] }],
"no-shadow-restricted-names": 2,
"no-undef": [2, { "typeof": true }],
"no-undef-init": 2,
"no-undefined": 2,
"no-unused-vars": [2, { "vars": "local", "args": "none", "caughtErrors": "none" }],
"no-use-before-define": [2, { "functions": false, "classes": true }],
// Node.js and CommonJS (fully reviewed 2016-05-04)
"callback-return": 0,
"global-require": 0,
"handle-callback-err": 2,
"no-mixed-requires": 0,
"no-new-require": 2,
"no-path-concat": 2,
"no-process-env": 2,
"no-process-exit": 2,
"no-restricted-modules": 0,
"no-sync": 2,
// Stylistic Issues
"no-plusplus": [2, { "allowForLoopAfterthoughts": false }],
"semi": [2, "never"],
// ECMAScript 6 (fully reviewed 2016-05-04)
"arrow-body-style": 0,
"arrow-parens": [2, "always"],
"arrow-spacing": [2, { "before": true, "after": true }],
"constructor-super": 2,
"generator-star-spacing": [2, "before"],
"no-class-assign": 2,
"no-confusing-arrow": [2, { "allowParens": true }],
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-duplicate-imports": 0,
"no-new-symbol": 2,
"no-restricted-imports": 0,
"no-this-before-super": 2,
"no-useless-computed-key": 2,
"no-var": 2,
"object-shorthand": [2, "always"],
"prefer-arrow-callback": [2, { "allowNamedFunctions": true }],
"prefer-const": 0,
"prefer-reflect": [2, { "exceptions": ["delete"] }],
"prefer-rest-params": 2,
"prefer-spread": 2,
"prefer-template": 2,
"require-yield": 2,
"sort-imports": 0,
"template-curly-spacing": [2, "always"],
"yield-star-spacing": [2, "before"]
}
}