replace jshint w/ eslint

This commit is contained in:
Geoff Doty 2020-09-08 17:27:17 -05:00
parent 2be7350902
commit 1a388656f2
3 changed files with 41 additions and 10 deletions

34
.eslintrc.js Normal file
View File

@ -0,0 +1,34 @@
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"no-console": [
"warn"
],
"indent": [
"error",
4,
{"SwitchCase": 1}
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
}

View File

@ -1,3 +0,0 @@
{
"esversion": 6
}

View File

@ -6,17 +6,17 @@
"directories": {
"test": "test"
},
"devDependencies": {
"gulp": "^4.0.2",
"gulp-minify": "^3.1.0",
"gulp-strip-comments": "^2.5.2",
"jshint": "^2.11.1"
},
"scripts": {
"build": "node_modules/.bin/gulp",
"lint": "node_modules/.bin/jshint src/testit.js",
"lint": "node_modules/.bin/eslint src/testit.js",
"test": "node test/run.js"
},
"devDependencies": {
"eslint": "^7.8.1",
"gulp": "^4.0.2",
"gulp-minify": "^3.1.0",
"gulp-strip-comments": "^2.5.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/n2geoff/testit.git"