chore(lint): use eslint instead of standard

This commit is contained in:
Tony Brix 2020-12-05 17:52:52 -06:00
parent b829a1d1a1
commit 9ac1daaea5
3 changed files with 25 additions and 4 deletions

4
.eslintignore Normal file
View File

@ -0,0 +1,4 @@
node_modules/
coverage/
.nyc_output/
docs/

14
.eslintrc.js Normal file
View File

@ -0,0 +1,14 @@
module.exports = {
env: {
commonjs: true,
es2021: true,
node: true
},
extends: [
'standard'
],
rules: {
'no-shadow': 'warn',
'no-unused-vars': 'warn'
}
}

View File

@ -27,10 +27,13 @@
"verror": "^1.8.1"
},
"devDependencies": {
"eslint": "^7.14.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"get-port": "^5.1.1",
"husky": "^4.2.5",
"snazzy": "^9.0.0",
"standard": "^16.0.0",
"tap": "14.11.0"
},
"scripts": {
@ -41,8 +44,8 @@
"test:watch": "tap -n -w --no-coverage-report",
"test:integration": "tap --no-cov 'test-integration/**/*.test.js'",
"test:integration:local": "docker-compose up -d && npm run test:integration && docker-compose down",
"lint": "standard | snazzy",
"lint:ci": "standard"
"lint": "eslint .",
"lint:ci": "npm run lint"
},
"husky": {
"hooks": {