From 12b877e736109e538a7523baafba18cbbb63f19b Mon Sep 17 00:00:00 2001 From: Roman Onishchenko Date: Tue, 10 Mar 2026 17:34:25 +0100 Subject: [PATCH] update eslint --- .husky/pre-commit | 2 +- package.json | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 41ae5e9..39932ba 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,5 @@ #!/usr/bin/env sh echo "Formatting staged files..." -npm run lint-staged +npx lint-staged diff --git a/package.json b/package.json index 13dfee5..b562497 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "dev": "vite", "build": "tsc -b && vite build", - "lint": "eslint .", + "elint": "eslint .", + "lint": "tsc --noEmit -p tsconfig.json", "preview": "vite preview", "format": "prettier --write .", "format:check": "prettier --check .", @@ -43,6 +44,12 @@ "vite": "^7.3.1" }, "lint-staged": { - "*.{ts,tsx,js,jsx,json,md}": "prettier --write" + "*.{ts,tsx,js,jsx}": [ + "eslint --fix", + "prettier --write" + ], + "*.{json,css,md,yml,yaml}": [ + "prettier --write" + ] } }