add & configure eslint for this project
This commit is contained in:
parent
88dc377562
commit
6156320dc8
3 changed files with 1601 additions and 1 deletions
18
.eslintrc.js
Normal file
18
.eslintrc.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
module.exports = {
|
||||
parserOptions: {
|
||||
ecmaVersion: "latest"
|
||||
},
|
||||
env: {
|
||||
browser: false,
|
||||
es6: true,
|
||||
node: true,
|
||||
mocha: true
|
||||
},
|
||||
extends: [
|
||||
'eslint:recommended'
|
||||
],
|
||||
rules: {
|
||||
// override/add rules settings here, such as:
|
||||
// 'vue/no-unused-vars': 'error'
|
||||
}
|
||||
}
|
1580
package-lock.json
generated
1580
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -4,7 +4,8 @@
|
|||
"description": "A brute force solver for tri peaks solitaire written in javascript",
|
||||
"main": "solver.js",
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
"test": "mocha",
|
||||
"lint": "eslint --ext .js --ignore-path .gitignore --fix ."
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -17,6 +18,7 @@
|
|||
},
|
||||
"homepage": "https://github.com/IgniparousTempest/javascript-tri-peaks-solitaire-solver#readme",
|
||||
"devDependencies": {
|
||||
"eslint": "^8.23.0",
|
||||
"mocha": "^10.0.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue