mirror of https://github.com/n2geoff/testit.git
replace jshint w/ eslint
This commit is contained in:
parent
2be7350902
commit
1a388656f2
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
14
package.json
14
package.json
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue