Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 9ac1daa

Browse files
committed
chore(lint): use eslint instead of standard
1 parent b829a1d commit 9ac1daa

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
coverage/
3+
.nyc_output/
4+
docs/

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
env: {
3+
commonjs: true,
4+
es2021: true,
5+
node: true
6+
},
7+
extends: [
8+
'standard'
9+
],
10+
rules: {
11+
'no-shadow': 'warn',
12+
'no-unused-vars': 'warn'
13+
}
14+
}

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@
2727
"verror": "^1.8.1"
2828
},
2929
"devDependencies": {
30+
"eslint": "^7.14.0",
31+
"eslint-config-standard": "^16.0.2",
32+
"eslint-plugin-import": "^2.22.1",
33+
"eslint-plugin-node": "^11.1.0",
34+
"eslint-plugin-promise": "^4.2.1",
3035
"get-port": "^5.1.1",
3136
"husky": "^4.2.5",
32-
"snazzy": "^9.0.0",
33-
"standard": "^16.0.0",
3437
"tap": "14.11.0"
3538
},
3639
"scripts": {
@@ -41,8 +44,8 @@
4144
"test:watch": "tap -n -w --no-coverage-report",
4245
"test:integration": "tap --no-cov 'test-integration/**/*.test.js'",
4346
"test:integration:local": "docker-compose up -d && npm run test:integration && docker-compose down",
44-
"lint": "standard | snazzy",
45-
"lint:ci": "standard"
47+
"lint": "eslint .",
48+
"lint:ci": "npm run lint"
4649
},
4750
"husky": {
4851
"hooks": {

0 commit comments

Comments
 (0)