Skip to content

Commit d2508d9

Browse files
committed
Add ESLint to scripts
1 parent f9c665a commit d2508d9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@
9898
"postinstall": "node ./node_modules/vscode/bin/install",
9999
"vscode:prepublish": "npm run compile",
100100
"vsce:package": "vsce package",
101-
"vsce:publish": "vsce publish"
101+
"vsce:publish": "vsce publish",
102+
"lint": "eslint .",
103+
"lint:fix": "eslint --fix ."
102104
},
103105
"devDependencies": {
104106
"@types/bluebird": "^3.5.19",

test/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// to report the results back to the caller. When the tests are finished, return
1111
// a possible error to the callback or null if none.
1212

13-
let testRunner = require("vscode/lib/testrunner");
13+
const testRunner = require("vscode/lib/testrunner");
1414

1515
// You can directly control Mocha options by uncommenting the following lines
1616
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info

0 commit comments

Comments
 (0)