Jelajahi Sumber

Simplify Biome lint commands (#4894)

Alec Rust 1 tahun lalu
induk
melakukan
288cd1f2b8
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      .lintstagedrc.cjs
  2. 1 1
      package.json

+ 1 - 1
.lintstagedrc.cjs

@@ -4,7 +4,7 @@ module.exports = {
 	// Run Stylelint on CSS files
 	// Run Stylelint on CSS files
 	'*.css': 'stylelint --fix --allow-empty-input',
 	'*.css': 'stylelint --fix --allow-empty-input',
 	// Run Biome on TS, TSX, JS, JSX files
 	// Run Biome on TS, TSX, JS, JSX files
-	'*.{ts,js}?(x)': 'npx @biomejs/biome lint --write --no-errors-on-unmatched',
+	'*.{ts,js}?(x)': 'biome lint --write --no-errors-on-unmatched',
 	// Run Prettier where supported
 	// Run Prettier where supported
 	'*': 'prettier --write --ignore-unknown',
 	'*': 'prettier --write --ignore-unknown',
 };
 };

+ 1 - 1
package.json

@@ -12,7 +12,7 @@
 		"docs:serve": "vitepress serve docs",
 		"docs:serve": "vitepress serve docs",
 		"docs:test": "vitest run --config docs/.vitepress/vitest.config.js",
 		"docs:test": "vitest run --config docs/.vitepress/vitest.config.js",
 		"build": "node build.js",
 		"build": "node build.js",
-		"lint": "prettier --cache --check . && npx @biomejs/biome lint . && stylelint web/css/src/**/*.css && markdownlint-cli2 *.md docs/**/*.md",
+		"lint": "prettier --cache --check . && biome lint . && stylelint web/css/src/**/*.css && markdownlint-cli2 *.md docs/**/*.md",
 		"lint-staged": "lint-staged",
 		"lint-staged": "lint-staged",
 		"format": "prettier --cache --write .",
 		"format": "prettier --cache --write .",
 		"preinstall": "npx only-allow npm",
 		"preinstall": "npx only-allow npm",