mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-29 18:50:00 +08:00
chore: migrate rome to biome (#44522)
* chore: migrate rome to biome * Update package.json Co-authored-by: afc163 <afc163@gmail.com> Signed-off-by: 咲奈Sakina <59400654+fz6m@users.noreply.github.com> --------- Signed-off-by: 咲奈Sakina <59400654+fz6m@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
7e1e6d8e73
commit
e88581c798
@ -1,4 +1,5 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.0.0/schema.json",
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"ignore": ["./dist/*", "./es/**/*", "./lib/**/*", "_site/**/*"],
|
@ -82,7 +82,7 @@
|
||||
"pre-publish": "npm run test-all -- --skip-build && node ./scripts/pre-publish-notice.js",
|
||||
"prettier": "prettier -c --write **/* --cache",
|
||||
"pub": "npm run version && npm run collect-token-statistic && npm run token-meta && antd-tools run pub",
|
||||
"rome:format": "rome format --write .",
|
||||
"biome:format": "biome format --write .",
|
||||
"prepublishOnly": "antd-tools run guard",
|
||||
"postpublish": "node ./scripts/post-script.js",
|
||||
"site": "dumi build && cp .surgeignore _site",
|
||||
@ -291,7 +291,7 @@
|
||||
"remark-cli": "^11.0.0",
|
||||
"remark-lint": "^9.0.0",
|
||||
"remark-preset-lint-recommended": "^6.0.0",
|
||||
"rome": "12.1.3-nightly.f65b0d9",
|
||||
"@biomejs/biome": "^1.0.0",
|
||||
"semver": "^7.3.5",
|
||||
"simple-git": "^3.0.0",
|
||||
"size-limit": "^8.1.0",
|
||||
@ -329,7 +329,7 @@
|
||||
"mode": "npm"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{ts,tsx,js,jsx}": "rome format --write",
|
||||
"*.{ts,tsx,js,jsx}": "biome format --write",
|
||||
"*.{json,less,md}": "prettier --ignore-unknown --write"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user