Skip to content

Commit 288cd1f

Browse files
authored
Simplify Biome lint commands (hestiacp#4894)
1 parent edf01da commit 288cd1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.lintstagedrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
// Run Stylelint on CSS files
55
'*.css': 'stylelint --fix --allow-empty-input',
66
// Run Biome on TS, TSX, JS, JSX files
7-
'*.{ts,js}?(x)': 'npx @biomejs/biome lint --write --no-errors-on-unmatched',
7+
'*.{ts,js}?(x)': 'biome lint --write --no-errors-on-unmatched',
88
// Run Prettier where supported
99
'*': 'prettier --write --ignore-unknown',
1010
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"docs:serve": "vitepress serve docs",
1313
"docs:test": "vitest run --config docs/.vitepress/vitest.config.js",
1414
"build": "node build.js",
15-
"lint": "prettier --cache --check . && npx @biomejs/biome lint . && stylelint web/css/src/**/*.css && markdownlint-cli2 *.md docs/**/*.md",
15+
"lint": "prettier --cache --check . && biome lint . && stylelint web/css/src/**/*.css && markdownlint-cli2 *.md docs/**/*.md",
1616
"lint-staged": "lint-staged",
1717
"format": "prettier --cache --write .",
1818
"preinstall": "npx only-allow npm",

0 commit comments

Comments
 (0)