This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
/
.eslintrc
92 lines (88 loc) · 1.96 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
{
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"spread": true,
"templateStrings": true,
"unicodeCodePointEscapes": true
},
},
"rules": {
//
//Possible Errors
//
"comma-dangle": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-extra-semi": 2,
"no-invalid-regexp": 2,
"no-regex-spaces": 2,
// Best Practices
//
"no-console": 2,
"complexity": [1, 4],
"max-depth": [2, 3],
"no-extra-bind": 1,
"default-case": 2,
"dot-notation": 2,
"eqeqeq": 2,
"no-alert": 2,
"no-eval": 2,
"no-implied-eval": 2,
"no-loop-func": 1,
"no-redeclare": 2,
"no-return-assign": 2,
"no-sequences": 2,
"no-with": 2,
"radix": 2,
"wrap-iife": 2,
"yoda": 2,
// Variables
//
"no-delete-var": 2,
"no-undef": 2,
// Style
//
"camelcase": 1,
"indent": [1, "tab"],
"comma-spacing": [1, {"before": false, "after": true}],
"comma-style": [1, "last"],
"consistent-this": [1, "self"],
"eol-last": 1,
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
"new-parens": 1,
"no-lonely-if": 1,
"no-nested-ternary": 1,
"no-spaced-func": 1,
"no-trailing-spaces": 1,
"no-underscore-dangle": 1,
"operator-assignment": [2, "always"],
"operator-linebreak": [2, "after"],
"quote-props": [1, "as-needed"],
"quotes": [2, "single"],
"semi": [1, "always"],
"semi-spacing": [2, {"before": false, "after": true}],
"space-infix-ops": 1,
"keyword-spacing": [2, { "overrides": {
"if": { "after": false },
"for": { "after": false },
"while": { "after": false }
} }],
"space-unary-ops": [1, {"words": true, "nonwords": false}],
"wrap-regex": 2,
}
}