chore: lint JS files in root directory

Not a huge deal since these files are trivial, but important if
they ever grow.
This commit is contained in:
Gabe Gorelick
2019-11-04 11:35:45 -05:00
parent 72e1a1ba19
commit f6e1543208
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -1 +1,3 @@
'use strict';
module.exports = { extends: ['@commitlint/config-conventional'] }; module.exports = { extends: ['@commitlint/config-conventional'] };
+2
View File
@@ -1,2 +1,4 @@
'use strict';
module.exports = require('./lib/queue'); module.exports = require('./lib/queue');
module.exports.Job = require('./lib/job'); module.exports.Job = require('./lib/job');
+1 -1
View File
@@ -51,7 +51,7 @@
"sinon": "^7.4.2" "sinon": "^7.4.2"
}, },
"scripts": { "scripts": {
"lint": "eslint lib test", "lint": "eslint lib test *.js",
"pretest": "npm run lint", "pretest": "npm run lint",
"test": "NODE_ENV=test mocha --exit", "test": "NODE_ENV=test mocha --exit",
"coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --exit -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage", "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --exit -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",