Update eslint, add pre commit hook

This commit is contained in:
Markus Frindt
2024-05-29 10:22:10 +02:00
parent 90152b36ef
commit 06b97bcb0f
6 changed files with 561 additions and 478 deletions
+9 -7
View File
@@ -12,8 +12,9 @@
"test": "NODE_ENV=test node test/ ",
"coverage": "nyc --reporter html --report-dir ./coverage npm run test",
"jslint": "eslint index.js lib",
"jslint:fix": "eslint --fix '**/*.js'",
"build": "./build_stubs.sh"
"jslint:fix": "npm run jslint --fix",
"build": "./build_stubs.sh",
"prepare": "husky"
},
"repository": {
"type": "git",
@@ -40,11 +41,12 @@
"undici": "^6.4.0"
},
"devDependencies": {
"config": "^3.3.10",
"eslint": "^8.56.0",
"eslint-plugin-promise": "^6.1.1",
"config": "^3.3.11",
"eslint": "^9.3.0",
"eslint-plugin-promise": "^6.2.0",
"husky": "^9.0.11",
"nyc": "^15.1.0",
"pino": "^8.17.0",
"tape": "^5.7.3"
"pino": "^9.1.0",
"tape": "^5.7.5"
}
}