mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
chore: use biome instead of prettier and eslint in hooks
This commit is contained in:
12
biome.json
12
biome.json
@@ -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/**/*"]
|
||||
}
|
||||
}
|
||||
|
||||
28
lefthook.yml
28
lefthook.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user