add & configure eslint for this project

This commit is contained in:
Adam Piontek 2022-09-07 08:29:18 -04:00
parent 88dc377562
commit 6156320dc8
3 changed files with 1601 additions and 1 deletions

18
.eslintrc.js Normal file
View 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

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,8 @@
"description": "A brute force solver for tri peaks solitaire written in javascript", "description": "A brute force solver for tri peaks solitaire written in javascript",
"main": "solver.js", "main": "solver.js",
"scripts": { "scripts": {
"test": "mocha" "test": "mocha",
"lint": "eslint --ext .js --ignore-path .gitignore --fix ."
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -17,6 +18,7 @@
}, },
"homepage": "https://github.com/IgniparousTempest/javascript-tri-peaks-solitaire-solver#readme", "homepage": "https://github.com/IgniparousTempest/javascript-tri-peaks-solitaire-solver#readme",
"devDependencies": { "devDependencies": {
"eslint": "^8.23.0",
"mocha": "^10.0.0" "mocha": "^10.0.0"
} }
} }