chore(lint): use eslint instead of standard
This commit is contained in:
parent
b829a1d1a1
commit
9ac1daaea5
|
@ -0,0 +1,4 @@
|
|||
node_modules/
|
||||
coverage/
|
||||
.nyc_output/
|
||||
docs/
|
|
@ -0,0 +1,14 @@
|
|||
module.exports = {
|
||||
env: {
|
||||
commonjs: true,
|
||||
es2021: true,
|
||||
node: true
|
||||
},
|
||||
extends: [
|
||||
'standard'
|
||||
],
|
||||
rules: {
|
||||
'no-shadow': 'warn',
|
||||
'no-unused-vars': 'warn'
|
||||
}
|
||||
}
|
11
package.json
11
package.json
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue