chore: use biome instead of prettier and eslint in hooks

This commit is contained in:
PalmDevs
2024-01-14 21:48:02 +07:00
parent 26ad4afc18
commit 7b00b5c2b8
2 changed files with 17 additions and 23 deletions

View File

@@ -27,6 +27,9 @@
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"parser": {
"allowComments": true
}
},
"javascript": {
@@ -44,12 +47,7 @@
},
"files": {
"ignoreUnknown": true,
"include": ["**/*.js", "**/*.json", "**/*.ts"],
"ignore": [
"**/tsconfig.json",
"**/tsconfig.*.json",
"dist/**/*",
"node_modules/**/*"
]
"include": ["*.js", "*.json", "*.ts"],
"ignore": ["dist/**/*", "node_modules/**/*"]
}
}

View File

@@ -1,16 +1,12 @@
pre-commit:
parallel: true
commands:
format:
files: git diff --name-only --cached --diff-filter=AM @{push}
glob: '*.{js,ts,json,yml,md}'
run: bunx prettier --ignore-path .gitignore --check {files}
lint:
files: git diff --name-only --cached --diff-filter=AM @{push}
glob: '*.{js,ts}'
run: bunx eslint --cache {files}
commit-msg:
parallel: false
commands:
commitlint:
run: bunx commitlint --edit
pre-commit:
parallel: true
commands:
check:
files: git diff --name-only --cached --diff-filter=AM @{push}
glob: "*.{js,ts,json,yml,md}"
run: bunx biome check {files}
commit-msg:
parallel: false
commands:
commitlint:
run: bunx commitlint --edit