Skip to content

Commit 0777977

Browse files
committed
Update eslint, semver
1 parent 08b476e commit 0777977

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Diff for: .eslintrc

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
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],
@@ -30,6 +31,7 @@
3031
"handle-callback-err": [0],
3132
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
3233
"linebreak-style": [2, "unix"],
34+
"lines-around-comment": [2, { "beforeBlockComment": false, "afterBlockComment": false, "beforeLineComment": false, "beforeLineComment": false }],
3335
"quotes": [2, "single", "avoid-escape"],
3436
"max-depth": [0, 4],
3537
"max-len": [0, 80, 4],
@@ -57,7 +59,7 @@
5759
"no-duplicate-case": [2],
5860
"no-else-return": [0],
5961
"no-empty": [2],
60-
"no-empty-class": [2],
62+
"no-empty-character-class": [2],
6163
"no-empty-label": [2],
6264
"no-eq-null": [0],
6365
"no-eval": [2],
@@ -134,6 +136,7 @@
134136
"no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
135137
"no-with": [2],
136138
"no-wrap-func": [2],
139+
"object-curly-spacing": [2, "always"],
137140
"object-shorthand": [2, "never"],
138141
"one-var": [0],
139142
"operator-assignment": [0, "always"],

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"jscs": "^1.13.1",
3838
"editorconfig-tools": "^0.1.1",
3939
"nsp": "^1.0.1",
40-
"eslint": "^0.21.2",
41-
"semver": "^4.3.4"
40+
"eslint": "^0.22.1",
41+
"semver": "^4.3.6"
4242
},
4343
"testling": {
4444
"files": "test.js",

0 commit comments

Comments
 (0)