-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
55 lines (55 loc) · 1.48 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
{
"rules": {
// ** discouraging bugs **
// typos, dead code, brainfarts, and things that don't quite
// do what you might think they do
"comma-dangle": [2, "never"],
"no-cond-assign": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"valid-typeof": 2,
"no-octal": 2,
"no-unreachable": 2,
"no-unused-expressions": 2,
"no-sparse-arrays": 2,
"no-redeclare": 2,
"no-self-compare": 2,
"no-duplicate-case": 2,
"no-obj-calls": 2,
// ** discouraging variable trouble **
// using variables correctly makes GC and scoping actually work
// which is generally considered to be a good thing
"block-scoped-var": 2,
"no-delete-var": 2,
"no-label-var": 2,
"no-shadow-restricted-names": 2,
"no-shadow": 2,
"no-undef": 2,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-use-before-define": [2, "nofunc"],
// ** discouraging bad practice **
// where the line between mistakes and really clever mistakes blurs
"no-inner-declarations": 1,
"no-func-assign": 1,
"no-fallthrough": 1,
"consistent-return": 1,
"no-else-return": 1,
"no-extra-boolean-cast": 2,
"no-eq-null": 2,
"eqeqeq": [2, "smart"],
"use-isnan": 2,
// ** sweeping up the dust **
// what your code looks like matters too, you know
"camelcase": 1,
"dot-notation": 1,
"no-extra-semi": 1,
"no-extra-parens": 1,
"indent": [1, "tab"],
"no-constant-condition": 1,
"no-irregular-whitespace": 1,
},
env: {
"browser": true,
"node": true
}
}