chore: test precommit

This commit is contained in:
Ayo Ayco 2024-12-27 21:48:23 +01:00
parent 26792ecd2b
commit 03f7119f65
3 changed files with 14 additions and 1 deletions

View file

@ -1,2 +1,2 @@
npm run test:cli run
npm run check
npx lint-staged

View file

@ -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 } } },

View file

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