diff --git a/.husky/pre-commit b/.husky/pre-commit index 40672d9f..af5adff9 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -npx --no-install lint-staged \ No newline at end of file +lint-staged \ No newline at end of file diff --git a/.lintstagedrc.json b/.lintstagedrc.json deleted file mode 100644 index d7421543..00000000 --- a/.lintstagedrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "*.ts": ["eslint --fix --report-unused-disable-directives", "prettier --write --ignore-unknown"], - "*.{json,md}": ["prettier --write --ignore-unknown"] -} diff --git a/package.json b/package.json index e8428db6..6714c8c6 100644 --- a/package.json +++ b/package.json @@ -111,5 +111,14 @@ "ts-node": "10.9.2", "type-fest": "4.27.0", "typescript": "5.6.3" + }, + "lint-staged": { + "*.ts": [ + "eslint --fix --report-unused-disable-directives", + "prettier --write --ignore-unknown --list-different" + ], + "*.{json,md}": [ + "prettier --write --ignore-unknown --list-different" + ] } }