From 2d4c818bfd9e11f87286a78ab2367f8db83eeebd Mon Sep 17 00:00:00 2001 From: Riccardo Date: Thu, 30 Nov 2023 19:09:10 +0100 Subject: [PATCH] ci: use lint-staged for husky --- .husky/pre-commit | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 8806a7c..8766867 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -3,5 +3,5 @@ yarn audit yarn format -yarn lint +yarn lint-staged yarn typecheck \ No newline at end of file diff --git a/package.json b/package.json index 26e1f82..6d24881 100644 --- a/package.json +++ b/package.json @@ -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",