chore: test precommit
This commit is contained in:
parent
3dfc593e1a
commit
2477f0ad2e
3 changed files with 2 additions and 9 deletions
0
.husky/pre-commit
Normal file → Executable file
0
.husky/pre-commit
Normal file → Executable file
|
@ -7,18 +7,12 @@ import astroParser from 'astro-eslint-parser'
|
|||
|
||||
import { includeIgnoreFile } from '@eslint/compat'
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
|
||||
|
||||
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = path.dirname(__filename)
|
||||
const gitignorePath = path.resolve(__dirname, '.gitignore')
|
||||
|
||||
const unused = 'hey'
|
||||
|
||||
export default [
|
||||
{
|
||||
languageOptions: {
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
},
|
||||
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c",
|
||||
"lint-staged": {
|
||||
"*.{js,mjs,astro,ts}": "eslint --cache --fix",
|
||||
"!(*.css, *.md, *.yml, *.yaml, *.html)": "prettier --write"
|
||||
"*.{js,mjs,astro,ts}": ["eslint --cache --fix", "prettier --write"]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue