mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 22:39:36 +08:00
chore: update biome config and format commands
- Exclude tailwind.css from linter includes - Add biome lint to format commands
This commit is contained in:
parent
e0e09b2de2
commit
8a74356ff5
@ -64,6 +64,8 @@
|
|||||||
},
|
},
|
||||||
"linter": {
|
"linter": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
"includes": ["!**/tailwind.css"],
|
||||||
|
// only enable sorted tailwind css rule. used as formatter instead of linter
|
||||||
"rules": {
|
"rules": {
|
||||||
"nursery": {
|
"nursery": {
|
||||||
// to sort tailwind css classes
|
// to sort tailwind css classes
|
||||||
|
|||||||
@ -65,8 +65,8 @@
|
|||||||
"test:e2e": "yarn playwright test",
|
"test:e2e": "yarn playwright test",
|
||||||
"test:lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
|
"test:lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
|
||||||
"test:scripts": "vitest scripts",
|
"test:scripts": "vitest scripts",
|
||||||
"format": "biome format --write",
|
"format": "biome format --write && biome lint --write",
|
||||||
"format:check": "biome format",
|
"format:check": "biome format && biome lint",
|
||||||
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix && yarn typecheck && yarn check:i18n",
|
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix && yarn typecheck && yarn check:i18n",
|
||||||
"prepare": "git config blame.ignoreRevsFile .git-blame-ignore-revs && husky",
|
"prepare": "git config blame.ignoreRevsFile .git-blame-ignore-revs && husky",
|
||||||
"claude": "dotenv -e .env -- claude"
|
"claude": "dotenv -e .env -- claude"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user