Skip to content

Commit 8725664

Browse files
committed
Chore: upgrade dependencies
1 parent 6aecf8d commit 8725664

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
lines changed

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ node_js:
77
- "8"
88

99
env:
10-
- ESLINT_VERSION=3
11-
- ESLINT_VERSION=4.3
1210
- ESLINT_VERSION=4
13-
14-
cache:
15-
directories:
16-
- node_modules
11+
- ESLINT_VERSION=4.3
12+
- ESLINT_VERSION=3
13+
- ESLINT_VERSION=3.1
1714

1815
before_script:
1916
- npm i --no-save eslint@$ESLINT_VERSION; true
2017

18+
script:
19+
- if [ $ESLINT_VERSION = 4 ]; then npm run lint; fi
20+
- npm test
21+
2122
after_success:
2223
- npm run codecov

lib/disabled-area.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ module.exports = class DisabledArea {
133133
}
134134

135135
if (!used) {
136-
this.unusedEnableDirectives.push({comment, ruleId})
136+
this.unusedEnableDirectives.push({ comment, ruleId })
137137
}
138138
}
139139
}
@@ -153,7 +153,7 @@ module.exports = class DisabledArea {
153153
}
154154

155155
if (start === null) {
156-
this.unusedEnableDirectives.push({comment, ruleId: null})
156+
this.unusedEnableDirectives.push({ comment, ruleId: null })
157157
}
158158
}
159159
}
@@ -208,8 +208,8 @@ module.exports = class DisabledArea {
208208
kind === "eslint-disable-line"
209209
) {
210210
const line = comment.loc.start.line
211-
const start = {line, column: 0}
212-
const end = {line: line + 1, column: -1}
211+
const start = { line, column: 0 }
212+
const end = { line: line + 1, column: -1 }
213213

214214
this._disable(comment, start, ruleIds, kind)
215215
this._enable(comment, end, ruleIds)
@@ -219,8 +219,8 @@ module.exports = class DisabledArea {
219219
kind === "eslint-disable-next-line"
220220
) {
221221
const line = comment.loc.start.line
222-
const start = {line: line + 1, column: 0}
223-
const end = {line: line + 2, column: -1}
222+
const start = { line: line + 1, column: 0 }
223+
const end = { line: line + 2, column: -1 }
224224

225225
this._disable(comment, start, ruleIds, kind)
226226
this._enable(comment, end, ruleIds)

lib/rules/no-unlimited-disable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = {
5050
context.report({
5151
loc: utils.toForceLocation(comment.loc),
5252
message: "Unexpected unlimited '{{kind}}' comment. Specify some rule names to disable.",
53-
data: {kind: m[1]},
53+
data: { kind: m[1] },
5454
})
5555
}
5656
}

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,21 @@
1717
},
1818
"devDependencies": {
1919
"chokidar-cli": "^1.2.0",
20-
"codecov": "^2.2.0",
21-
"eslint": "^3.8.1",
22-
"eslint-config-mysticatea": "^10.0.0",
23-
"mocha": "^3.1.0",
24-
"npm-run-all": "^4.0.2",
25-
"nyc": "^11.0.1",
26-
"opener": "^1.4.2",
27-
"rimraf": "^2.5.4"
20+
"codecov": "^2.3.0",
21+
"eslint": "^4.7.0",
22+
"eslint-config-mysticatea": "^12.0.0",
23+
"mocha": "^3.5.3",
24+
"npm-run-all": "^4.1.1",
25+
"nyc": "^11.2.1",
26+
"opener": "^1.4.3",
27+
"rimraf": "^2.6.2"
2828
},
2929
"scripts": {
3030
"preversion": "run-s clean test build",
3131
"postversion": "git push && git push --tags",
3232
"build": "node scripts/generate-index.js",
3333
"clean": "rimraf .nyc_output coverage index.js",
3434
"lint": "eslint lib scripts tests",
35-
"pretest": "npm run lint",
3635
"test": "nyc mocha \"tests/lib/**/*.js\" --reporter progress",
3736
"watch": "chokidar lib tests --initial --command \"npm test && nyc report --reporter lcov\"",
3837
"coverage": "nyc report --reporter lcov && opener coverage/lcov-report/index.html",

tests/lib/rules/no-use.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,39 +32,39 @@ tester.run("no-use", rule, {
3232
"/* just eslint in a normal comment */",
3333
{
3434
code: "/* eslint */",
35-
options: [{allow: ["eslint"]}],
35+
options: [{ allow: ["eslint"] }],
3636
},
3737
{
3838
code: "/* eslint-env */",
39-
options: [{allow: ["eslint-env"]}],
39+
options: [{ allow: ["eslint-env"] }],
4040
},
4141
{
4242
code: "/* eslint-enable */",
43-
options: [{allow: ["eslint-enable"]}],
43+
options: [{ allow: ["eslint-enable"] }],
4444
},
4545
{
4646
code: "/* eslint-disable */",
47-
options: [{allow: ["eslint-disable"]}],
47+
options: [{ allow: ["eslint-disable"] }],
4848
},
4949
{
5050
code: "// eslint-disable-line",
51-
options: [{allow: ["eslint-disable-line"]}],
51+
options: [{ allow: ["eslint-disable-line"] }],
5252
},
5353
{
5454
code: "// eslint-disable-next-line",
55-
options: [{allow: ["eslint-disable-next-line"]}],
55+
options: [{ allow: ["eslint-disable-next-line"] }],
5656
},
5757
{
5858
code: "/* exported */",
59-
options: [{allow: ["exported"]}],
59+
options: [{ allow: ["exported"] }],
6060
},
6161
{
6262
code: "/* global */",
63-
options: [{allow: ["global"]}],
63+
options: [{ allow: ["global"] }],
6464
},
6565
{
6666
code: "/* globals */",
67-
options: [{allow: ["globals"]}],
67+
options: [{ allow: ["globals"] }],
6868
},
6969
],
7070
invalid: [

0 commit comments

Comments
 (0)