chore: test lint-staged
This commit is contained in:
parent
5e15963084
commit
b158b50fef
2 changed files with 4 additions and 2 deletions
|
@ -7,7 +7,7 @@ import astroParser from 'astro-eslint-parser'
|
||||||
|
|
||||||
import { includeIgnoreFile } from '@eslint/compat'
|
import { includeIgnoreFile } from '@eslint/compat'
|
||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
import { fileURLToPath } from 'node:url'
|
import { fileURLToPath } from 'node:url';
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url)
|
const __filename = fileURLToPath(import.meta.url)
|
||||||
const __dirname = path.dirname(__filename)
|
const __dirname = path.dirname(__filename)
|
||||||
|
|
|
@ -41,6 +41,8 @@
|
||||||
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c",
|
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c",
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.js": "eslint --cache --fix",
|
"*.js": "eslint --cache --fix",
|
||||||
"*.--write": "prettier --write"
|
"*.mjs": "eslint --cache --fix",
|
||||||
|
"*.--write": "prettier . --write",
|
||||||
|
"*": "prettier . --write"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue