chore: test precommit
This commit is contained in:
parent
26792ecd2b
commit
03f7119f65
3 changed files with 14 additions and 1 deletions
|
@ -1,2 +1,2 @@
|
|||
npm run test:cli run
|
||||
npm run check
|
||||
npx lint-staged
|
||||
|
|
|
@ -8,6 +8,10 @@ const __filename = fileURLToPath(import.meta.url)
|
|||
const __dirname = path.dirname(__filename)
|
||||
const gitignorePath = path.resolve(__dirname, '.gitignore')
|
||||
|
||||
const unused = 'hey'
|
||||
|
||||
console.log(unused)
|
||||
|
||||
/** @type {import('eslint').Linter.Config[]} */
|
||||
export default [
|
||||
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
|
||||
|
|
|
@ -24,5 +24,14 @@
|
|||
"husky": "^9.1.7",
|
||||
"prettier": "^3.4.2",
|
||||
"vitest": "^2.1.8"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,mjs,astro,ts}": [
|
||||
"prettier --write",
|
||||
"eslint --fix"
|
||||
],
|
||||
"*.json": [
|
||||
"prettier --write"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue