Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit 4f4b06c

Browse files
author
New Geoff
committed
Better .eslintrc with more rules
1 parent 276761f commit 4f4b06c

File tree

1 file changed

+38
-39
lines changed

1 file changed

+38
-39
lines changed

.eslintrc

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,68 +7,67 @@
77
"rules": {
88
"block-scoped-var": 2,
99
"camelcase": 0,
10-
"curly": [
11-
2,
12-
"all"
13-
],
14-
"dot-notation": [
15-
1,
16-
{
17-
"allowKeywords": true
18-
}
19-
],
20-
"eqeqeq": [
21-
2,
22-
"allow-null"
23-
],
24-
"global-strict": [
25-
0,
26-
"never"
27-
],
10+
"consistent-return": 2,
11+
"curly": [2, "all"],
12+
"dot-notation": [1, { "allowKeywords": true }],
13+
"eqeqeq": [2, "allow-null"],
14+
"global-strict": [0, "never"],
2815
"guard-for-in": 2,
29-
"key-spacing": [
30-
0
31-
],
16+
"indent": [2, 2, {"SwitchCase": 2, "VariableDeclarator": 2}],
17+
"key-spacing": 0,
3218
"new-cap": 0,
19+
"no-alert": 2,
3320
"no-bitwise": 2,
3421
"no-caller": 2,
35-
"no-cond-assign": [
36-
2,
37-
"except-parens"
38-
],
22+
"no-cond-assign": [2, "except-parens"],
3923
"no-debugger": 2,
24+
"no-dupe-args": 2,
25+
"no-dupe-keys": 2,
4026
"no-empty": 2,
4127
"no-eval": 2,
4228
"no-extend-native": 2,
29+
"no-extra-bind": 2,
4330
"no-extra-parens": 0,
31+
"no-extra-semi": 2,
32+
"no-func-assign": 2,
33+
"no-implied-eval": 2,
34+
"no-invalid-regexp": 2,
4435
"no-irregular-whitespace": 1,
4536
"no-iterator": 2,
4637
"no-loop-func": 2,
4738
"no-mixed-requires": 0,
4839
"no-multi-str": 2,
49-
"no-multi-spaces": 0,
40+
"no-multi-spaces": 1,
41+
"no-native-reassign": 2,
5042
"no-new": 2,
43+
"no-param-reassign": 2,
5144
"no-proto": 2,
45+
"no-redeclare": 2,
5246
"no-script-url": 2,
47+
"no-self-assign": 2,
48+
"no-self-compare": 2,
5349
"no-sequences": 2,
5450
"no-shadow": 2,
5551
"no-undef": 2,
5652
"no-underscore-dangle": 1,
57-
"no-unused-vars": 2,
53+
"no-unreachable": 1,
54+
"no-unused-vars": 1,
55+
"no-use-before-define": 1,
56+
"no-useless-call": 2,
57+
"no-useless-concat": 2,
5858
"no-with": 2,
59-
"quotes": [
60-
0,
61-
"single"
62-
],
63-
"semi": [
64-
0,
65-
"never"
66-
],
59+
"quotes": [0, "single"],
60+
"radix": 2,
61+
"semi": [0, "never"],
6762
"strict": 0,
63+
"space-before-blocks": 1,
64+
"space-before-function-paren": [1, {
65+
"anonymous": "always",
66+
"named": "never"
67+
}],
68+
"space-infix-ops": 1,
6869
"valid-typeof": 2,
69-
"wrap-iife": [
70-
2,
71-
"inside"
72-
]
70+
"vars-on-top": 0,
71+
"wrap-iife": [2, "inside"]
7372
}
7473
}

0 commit comments

Comments
 (0)