diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100644 new mode 100755 diff --git a/eslint.config.mjs b/eslint.config.mjs index 377f335..8b5c925 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -9,12 +9,6 @@ import { includeIgnoreFile } from '@eslint/compat' import path from 'node:path' import { fileURLToPath } from 'node:url' - - - - -const unused = 'hey' - const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) const gitignorePath = path.resolve(__dirname, '.gitignore') diff --git a/package.json b/package.json index b477da0..544f396 100644 --- a/package.json +++ b/package.json @@ -50,5 +50,14 @@ "typescript-eslint": "^8.18.2", "ultrahtml": "^1.5.3", "vitest": "^2.1.8" + }, + "lint-staged": { + "*.{js,mjs,astro,ts}": [ + "prettier --write", + "eslint --fix" + ], + "*.{json}": [ + "prettier --write" + ] } }