ci: use lint-staged for husky
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user