Skip to content

Commit 9e1d908

Browse files
committed
Update nsp, eslint, semver
1 parent be5d11e commit 9e1d908

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.eslintrc

+8-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
},
99

1010
"rules": {
11+
"accessor-pairs": [2, { getWithoutSet: false, setWithoutGet: true }],
1112
"block-scoped-var": [0],
1213
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
1314
"camelcase": [2],
1415
"comma-dangle": [2, "never"],
1516
"comma-spacing": [2],
1617
"comma-style": [2, "last"],
1718
"complexity": [0, 11],
19+
"computed-property-spacing": [2, "never"],
1820
"consistent-return": [2],
1921
"consistent-this": [0, "that"],
2022
"curly": [2, "all"],
@@ -30,6 +32,7 @@
3032
"handle-callback-err": [0],
3133
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
3234
"linebreak-style": [2, "unix"],
35+
"lines-around-comment": [2, { "beforeBlockComment": false, "afterBlockComment": false, "beforeLineComment": false, "beforeLineComment": false }],
3336
"quotes": [2, "single", "avoid-escape"],
3437
"max-depth": [0, 4],
3538
"max-len": [0, 80, 4],
@@ -57,7 +60,7 @@
5760
"no-duplicate-case": [2],
5861
"no-else-return": [0],
5962
"no-empty": [2],
60-
"no-empty-class": [2],
63+
"no-empty-character-class": [2],
6164
"no-empty-label": [2],
6265
"no-eq-null": [0],
6366
"no-eval": [2],
@@ -134,11 +137,13 @@
134137
"no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
135138
"no-with": [2],
136139
"no-wrap-func": [2],
140+
"object-curly-spacing": [2, "always"],
137141
"object-shorthand": [2, "never"],
138142
"one-var": [0],
139143
"operator-assignment": [0, "always"],
140144
"operator-linebreak": [2, "none"],
141145
"padded-blocks": [0],
146+
"prefer-const": [0],
142147
"quote-props": [0],
143148
"radix": [0],
144149
"semi": [2],
@@ -159,6 +164,7 @@
159164
"space-infix-ops": [2],
160165
"space-return-throw-case": [2],
161166
"space-unary-ops": [2, { "words": true, "nonwords": false }],
167+
"spaced-comment": [2, "always"],
162168
"spaced-line-comment": [0, "always"],
163169
"strict": [0],
164170
"use-isnan": [2],
@@ -167,6 +173,6 @@
167173
"vars-on-top": [0],
168174
"wrap-iife": [2],
169175
"wrap-regex": [2],
170-
"yoda": [2, "never", { "exceptRange": true }]
176+
"yoda": [2, "never", { "exceptRange": true, "onlyEquality": false }]
171177
}
172178
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"covert": "^1.1.0",
3636
"jscs": "^1.13.1",
3737
"editorconfig-tools": "^0.1.1",
38-
"nsp": "^1.0.1",
39-
"eslint": "^0.21.2",
40-
"semver": "^4.3.4"
38+
"nsp": "^1.0.3",
39+
"eslint": "^0.23.0",
40+
"semver": "^4.3.6"
4141
},
4242
"testling": {
4343
"files": "test.js",

0 commit comments

Comments
 (0)