lint-staged
Some checks failed
deploy / Linting (push) Failing after 49s
deploy / Run end-to-end tests (push) Failing after 1m31s
deploy / Update templates on Mailgun (push) Has been skipped
deploy / Github (push) Failing after 2s

This commit is contained in:
Untone 2024-02-04 13:56:54 +03:00
parent 019c2f5976
commit aafb55e46b
3 changed files with 12 additions and 0 deletions

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run pre-commit

7
.lintstagedrc Normal file
View File

@ -0,0 +1,7 @@
{
"*.{js,ts,cjs,mjs,d.mts,jsx,tsx,json,jsonc}": [
"biome lint src --no-errors-on-unmatched"
],
"package.json": "sort-package-json",
"public/locales/**/*.json": "sort-json"
}

View File

@ -19,6 +19,7 @@
"lint:code:fix": "npx @biomejs/biome lint src --apply-unsafe --log-kind=compact --verbose", "lint:code:fix": "npx @biomejs/biome lint src --apply-unsafe --log-kind=compact --verbose",
"lint:styles": "stylelint **/*.{scss,css}", "lint:styles": "stylelint **/*.{scss,css}",
"lint:styles:fix": "stylelint **/*.{scss,css} --fix", "lint:styles:fix": "stylelint **/*.{scss,css} --fix",
"pre-commit": "lint-staged",
"prepare": "husky install", "prepare": "husky install",
"preview": "vite preview", "preview": "vite preview",
"start": "vite", "start": "vite",