Skip to content

Commit d2fc304

Browse files
committed
Update eslint
1 parent 9e1d908 commit d2fc304

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

.eslintrc

+23-8
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,49 @@
99

1010
"rules": {
1111
"accessor-pairs": [2, { getWithoutSet: false, setWithoutGet: true }],
12+
"array-bracket-spacing": [2, "never", {
13+
"singleValue": false,
14+
"objectsInArrays": false,
15+
"arraysInArrays": false
16+
}],
1217
"block-scoped-var": [0],
1318
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
1419
"camelcase": [2],
1520
"comma-dangle": [2, "never"],
1621
"comma-spacing": [2],
1722
"comma-style": [2, "last"],
18-
"complexity": [0, 11],
23+
"complexity": [2, 10],
1924
"computed-property-spacing": [2, "never"],
2025
"consistent-return": [2],
2126
"consistent-this": [0, "that"],
27+
"constructor-super": [2],
2228
"curly": [2, "all"],
2329
"default-case": [2],
2430
"dot-notation": [2, { "allowKeywords": true }],
2531
"eol-last": [2],
2632
"eqeqeq": [2],
2733
"func-names": [0],
2834
"func-style": [2, "expression"],
29-
"generator-star-spacing": [2, "after"],
35+
"generator-star-spacing": [2, { "before": false, "after": true }],
3036
"global-strict": [0, "never"],
3137
"guard-for-in": [0],
3238
"handle-callback-err": [0],
3339
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
3440
"linebreak-style": [2, "unix"],
35-
"lines-around-comment": [2, { "beforeBlockComment": false, "afterBlockComment": false, "beforeLineComment": false, "beforeLineComment": false }],
41+
"lines-around-comment": [2, {
42+
"beforeBlockComment": false,
43+
"afterBlockComment": false,
44+
"beforeLineComment": false,
45+
"beforeLineComment": false,
46+
"allowBlockStart": true,
47+
"allowBlockEnd": true
48+
}],
3649
"quotes": [2, "single", "avoid-escape"],
37-
"max-depth": [0, 4],
50+
"max-depth": [2, 4],
3851
"max-len": [0, 80, 4],
39-
"max-nested-callbacks": [0, 2],
40-
"max-params": [0, 3],
41-
"max-statements": [0, 10],
52+
"max-nested-callbacks": [2, 2],
53+
"max-params": [2, 2],
54+
"max-statements": [2, 12],
4255
"new-parens": [2],
4356
"new-cap": [2],
4457
"newline-after-var": [0],
@@ -111,7 +124,7 @@
111124
"no-regex-spaces": [2],
112125
"no-reserved-keys": [2],
113126
"no-restricted-modules": [0],
114-
"no-return-assign": [2],
127+
"no-return-assign": [2, "always"],
115128
"no-script-url": [2],
116129
"no-self-compare": [0],
117130
"no-sequences": [2],
@@ -122,12 +135,14 @@
122135
"no-sparse-arrays": [2],
123136
"no-sync": [0],
124137
"no-ternary": [0],
138+
"no-this-before-super": [2],
125139
"no-throw-literal": [2],
126140
"no-trailing-spaces": [2, { "skipBlankLines": false }],
127141
"no-undef": [2],
128142
"no-undef-init": [2],
129143
"no-undefined": [0],
130144
"no-underscore-dangle": [2],
145+
"no-unexpected-multiline": [2],
131146
"no-unneeded-ternary": [2],
132147
"no-unreachable": [2],
133148
"no-unused-expressions": [2],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"jscs": "^1.13.1",
3737
"editorconfig-tools": "^0.1.1",
3838
"nsp": "^1.0.3",
39-
"eslint": "^0.23.0",
39+
"eslint": "^0.24.0",
4040
"semver": "^4.3.6"
4141
},
4242
"testling": {

0 commit comments

Comments
 (0)