chore: test precommit

This commit is contained in:
Ayo Ayco 2024-12-27 21:25:45 +01:00
parent b384210f1b
commit 40631874d8
3 changed files with 9 additions and 6 deletions

0
.husky/pre-commit Normal file → Executable file
View file

View file

@ -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')

View file

@ -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"
]
}
}