ci: use lint-staged for husky

This commit is contained in:
Riccardo
2023-11-30 19:09:10 +01:00
parent 853a0aeab9
commit 2d4c818bfd
2 changed files with 3 additions and 2 deletions

View File

@@ -3,5 +3,5 @@
yarn audit
yarn format
yarn lint
yarn lint-staged
yarn typecheck

View File

@@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Backend with NodeJS in TypeScript",
"main": "src/index.ts",
"repository": "https://github.com/RiccardoSenica/node-with-typescript.git",
"repository": "https://github.com/RiccardoSenica/nodejs-template-with-typescript",
"author": "riccardo.s@hey.com",
"license": "MIT",
"scripts": {
@@ -11,6 +11,7 @@
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/index.ts",
"build": "tsc",
"lint": "eslint --ext .ts . --fix",
"lint-staged": "lint-staged",
"typecheck": "tsc --noEmit",
"format": "prettier --config .prettierrc 'src/**/*.ts' --write",
"test": "jest --runInBand --detectOpenHandles",