chore: per-commit lint

This commit is contained in:
jialin
2025-03-03 14:30:55 +08:00
parent 1bb6c5fbfc
commit bb47b4475e
7 changed files with 321 additions and 12 deletions
+4 -8
View File
@@ -1,11 +1,6 @@
{
"*.{md,json}": [
"prettier --cache --write"
],
"*.{js,jsx}": [
"max lint --fix --eslint-only",
"prettier --cache --write"
],
"*.{md,json}": ["prettier --cache --write"],
"*.{js,jsx}": ["max lint --fix --eslint-only", "prettier --cache --write"],
"*.{css,less}": [
"max lint --fix --stylelint-only",
"prettier --cache --write"
@@ -13,5 +8,6 @@
"*.ts?(x)": [
"max lint --fix --eslint-only",
"prettier --cache --parser=typescript --write"
]
],
"src/locales/**/*.ts": ["npx tsx src/locales/check.ts"]
}