-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
81 lines (73 loc) · 1.95 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
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [],
"rules": {
// Possible Errors
// "no-console": 2,
"no-empty": 2,
"no-extra-semi": 2,
"no-func-assign": 2,
"no-inner-declarations": 2,
// Best Practices
"curly": 2,
"default-case": 2,
"dot-notation": 2,
"eqeqeq": 2,
"no-alert": 2,
"no-caller": 2,
"no-eval": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-new": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-new-wrappers": 2,
"no-octal-escape": 2,
"no-proto": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-unused-expressions": 2,
"no-with": 2,
// Variables
"no-label-var": 2,
"no-shadow": 2,
"no-shadow-restricted-names": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-unused-vars": 2,
// Stylistic Issues
"brace-style": [1, "1tbs"],
"camelcase": 1,
"comma-spacing": 1,
"eol-last": 1,
"key-spacing": 1,
"new-cap": 1,
"new-parens": 1,
"no-array-constructor": 1,
"no-spaced-func": 1,
"no-trailing-spaces": [1, { "skipBlankLines": true }],
"quotes": [1, "single"],
"semi": [1, "never"],
"semi-spacing": [1, {"before": false, "after": true}],
"space-infix-ops": 1,
"space-unary-ops": [1, {"words": true, "nonwords": false}],
"no-mixed-spaces-and-tabs": [1, "smart-tabs"],
// ECMAScript 6
"no-class-assign": 2,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-this-before-super": 2,
"no-var": 2,
}
}