replace jshint with eslint

This commit is contained in:
Geoff Doty 2020-03-06 17:56:54 -06:00
parent faa2ea8f34
commit c39dba5335
3 changed files with 35 additions and 4 deletions

34
.eslintrc.json Normal file
View File

@ -0,0 +1,34 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
},
"sourceType": "module"
},
"rules": {
"indent": [
"error",
4,
{"SwitchCase": 1}
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"no-extra-semi": [
"off",
1
]
}
}

View File

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

View File

@ -27,10 +27,10 @@
"author": "Geoff Doty", "author": "Geoff Doty",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"eslint": "^6.8.0",
"gulp": "^4.0.2", "gulp": "^4.0.2",
"gulp-minify": "^3.1.0", "gulp-minify": "^3.1.0",
"gulp-strip-comments": "^2.5.2", "gulp-strip-comments": "^2.5.2",
"jshint": "^2.10.2",
"tape": "^4.10.2" "tape": "^4.10.2"
} }
} }