Skip to content

Commit

Permalink
chore: migrate rome to biome (ant-design#44522)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
fz6m and afc163 authored Aug 30, 2023
1 parent 7e1e6d8 commit e88581c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions rome.json → biome.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.0.0/schema.json",
"formatter": {
"enabled": true,
"ignore": ["./dist/*", "./es/**/*", "./lib/**/*", "_site/**/*"],
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}

0 comments on commit e88581c

Please sign in to comment.