Skip to content

Commit b24cf8e

Browse files
committed
imp(biomejs): Upgrade Biomejs, don't use yarn workspaces for lint/check-lint, and configure files in biome.json
1 parent 3732365 commit b24cf8e

File tree

3 files changed

+61
-59
lines changed

3 files changed

+61
-59
lines changed

biome.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
23
"files": {
3-
"ignore": ["**/composer.json"]
4+
"include": ["src/*/assets/src/**", "src/*/assets/test/**", "src/*/*.json", "src/*/*/md", "*.json", "*.md"],
5+
"ignore": ["**/composer.json", "**/vendor", "**/node_modules"]
46
},
57
"linter": {
68
"rules": {
@@ -27,7 +29,7 @@
2729
},
2830
"javascript": {
2931
"formatter": {
30-
"trailingComma": "es5",
32+
"trailingCommas": "es5",
3133
"bracketSameLine": true,
3234
"quoteStyle": "single"
3335
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
"scripts": {
55
"build": "node bin/build_javascript.js && node bin/build_styles.js",
66
"test": "bin/run-vitest-all.sh",
7-
"lint": "yarn workspaces run biome lint src test --apply",
8-
"format": "biome format src/*/assets/src/*.ts src/*/assets/test/*.js {,src/*/}*.{json,md} --write",
9-
"check-lint": "yarn workspaces run biome lint src test",
10-
"check-format": "biome format src/*/assets/src/*.ts src/*/assets/test/*.js {,src/*/}*.{json,md}"
7+
"lint": "biome lint --write",
8+
"format": "biome format --write",
9+
"check-lint": "biome lint",
10+
"check-format": "biome format"
1111
},
1212
"devDependencies": {
1313
"@babel/core": "^7.15.8",
1414
"@babel/preset-env": "^7.15.8",
1515
"@babel/preset-react": "^7.15.8",
1616
"@babel/preset-typescript": "^7.15.8",
17-
"@biomejs/biome": "^1.7.3",
17+
"@biomejs/biome": "^1.8.3",
1818
"@rollup/plugin-commonjs": "^23.0.0",
1919
"@rollup/plugin-node-resolve": "^15.0.0",
2020
"@rollup/plugin-typescript": "^10.0.0",

yarn.lock

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,59 +1933,59 @@
19331933
resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz"
19341934
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
19351935

1936-
"@biomejs/biome@^1.7.3":
1937-
version "1.7.3"
1938-
resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.7.3.tgz#847a317b63c811534fc8108389b7a9fae8803eed"
1939-
integrity sha512-ogFQI+fpXftr+tiahA6bIXwZ7CSikygASdqMtH07J2cUzrpjyTMVc9Y97v23c7/tL1xCZhM+W9k4hYIBm7Q6cQ==
1936+
"@biomejs/biome@^1.8.3":
1937+
version "1.8.3"
1938+
resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.8.3.tgz#3b5eecea90d973f71618aae3e6e8be4d2ca23e42"
1939+
integrity sha512-/uUV3MV+vyAczO+vKrPdOW0Iaet7UnJMU4bNMinggGJTAnBPjCoLEYcyYtYHNnUNYlv4xZMH6hVIQCAozq8d5w==
19401940
optionalDependencies:
1941-
"@biomejs/cli-darwin-arm64" "1.7.3"
1942-
"@biomejs/cli-darwin-x64" "1.7.3"
1943-
"@biomejs/cli-linux-arm64" "1.7.3"
1944-
"@biomejs/cli-linux-arm64-musl" "1.7.3"
1945-
"@biomejs/cli-linux-x64" "1.7.3"
1946-
"@biomejs/cli-linux-x64-musl" "1.7.3"
1947-
"@biomejs/cli-win32-arm64" "1.7.3"
1948-
"@biomejs/cli-win32-x64" "1.7.3"
1949-
1950-
"@biomejs/cli-darwin-arm64@1.7.3":
1951-
version "1.7.3"
1952-
resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.7.3.tgz#0b0f568f6fd2153aa1a53bddd0a55355df381952"
1953-
integrity sha512-eDvLQWmGRqrPIRY7AIrkPHkQ3visEItJKkPYSHCscSDdGvKzYjmBJwG1Gu8+QC5ed6R7eiU63LEC0APFBobmfQ==
1954-
1955-
"@biomejs/cli-darwin-x64@1.7.3":
1956-
version "1.7.3"
1957-
resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.7.3.tgz#0eb0e9da1f869e65e6ce98a007a3341bb1c88446"
1958-
integrity sha512-JXCaIseKRER7dIURsVlAJacnm8SG5I0RpxZ4ya3dudASYUc68WGl4+FEN03ABY3KMIq7hcK1tzsJiWlmXyosZg==
1959-
1960-
"@biomejs/cli-linux-arm64-musl@1.7.3":
1961-
version "1.7.3"
1962-
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.7.3.tgz#e098110cc11552857ba46cae1e00e68805c1718a"
1963-
integrity sha512-c8AlO45PNFZ1BYcwaKzdt46kYbuP6xPGuGQ6h4j3XiEDpyseRRUy/h+6gxj07XovmyxKnSX9GSZ6nVbZvcVUAw==
1964-
1965-
"@biomejs/cli-linux-arm64@1.7.3":
1966-
version "1.7.3"
1967-
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.7.3.tgz#9e53c14acd7190ebd1e8b0a2f5a54083c118ce72"
1968-
integrity sha512-phNTBpo7joDFastnmZsFjYcDYobLTx4qR4oPvc9tJ486Bd1SfEVPHEvJdNJrMwUQK56T+TRClOQd/8X1nnjA9w==
1969-
1970-
"@biomejs/cli-linux-x64-musl@1.7.3":
1971-
version "1.7.3"
1972-
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.7.3.tgz#f27d4a267f69e663797e3204e51a373f3e33bc30"
1973-
integrity sha512-UdEHKtYGWEX3eDmVWvQeT+z05T9/Sdt2+F/7zmMOFQ7boANeX8pcO6EkJPK3wxMudrApsNEKT26rzqK6sZRTRA==
1974-
1975-
"@biomejs/cli-linux-x64@1.7.3":
1976-
version "1.7.3"
1977-
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.7.3.tgz#7112b22e32a8626d0f11d92e43d0cc034c50723d"
1978-
integrity sha512-vnedYcd5p4keT3iD48oSKjOIRPYcjSNNbd8MO1bKo9ajg3GwQXZLAH+0Cvlr+eMsO67/HddWmscSQwTFrC/uPA==
1979-
1980-
"@biomejs/cli-win32-arm64@1.7.3":
1981-
version "1.7.3"
1982-
resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.7.3.tgz#91bed8a3ae3433c3feb6a11816b0eb19b60801ef"
1983-
integrity sha512-unNCDqUKjujYkkSxs7gFIfdasttbDC4+z0kYmcqzRk6yWVoQBL4dNLcCbdnJS+qvVDNdI9rHp2NwpQ0WAdla4Q==
1984-
1985-
"@biomejs/cli-win32-x64@1.7.3":
1986-
version "1.7.3"
1987-
resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.7.3.tgz#41b65a940a360abb4a3205949370153ffe30c7de"
1988-
integrity sha512-ZmByhbrnmz/UUFYB622CECwhKIPjJLLPr5zr3edhu04LzbfcOrz16VYeNq5dpO1ADG70FORhAJkaIGdaVBG00w==
1941+
"@biomejs/cli-darwin-arm64" "1.8.3"
1942+
"@biomejs/cli-darwin-x64" "1.8.3"
1943+
"@biomejs/cli-linux-arm64" "1.8.3"
1944+
"@biomejs/cli-linux-arm64-musl" "1.8.3"
1945+
"@biomejs/cli-linux-x64" "1.8.3"
1946+
"@biomejs/cli-linux-x64-musl" "1.8.3"
1947+
"@biomejs/cli-win32-arm64" "1.8.3"
1948+
"@biomejs/cli-win32-x64" "1.8.3"
1949+
1950+
"@biomejs/cli-darwin-arm64@1.8.3":
1951+
version "1.8.3"
1952+
resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.8.3.tgz#be2bfdd445cd2d3cb0ff41a96a72ec761753997c"
1953+
integrity sha512-9DYOjclFpKrH/m1Oz75SSExR8VKvNSSsLnVIqdnKexj6NwmiMlKk94Wa1kZEdv6MCOHGHgyyoV57Cw8WzL5n3A==
1954+
1955+
"@biomejs/cli-darwin-x64@1.8.3":
1956+
version "1.8.3"
1957+
resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.8.3.tgz#47d408edd9f5c04069fbcf8610bacf1db8c6c0d9"
1958+
integrity sha512-UeW44L/AtbmOF7KXLCoM+9PSgPo0IDcyEUfIoOXYeANaNXXf9mLUwV1GeF2OWjyic5zj6CnAJ9uzk2LT3v/wAw==
1959+
1960+
"@biomejs/cli-linux-arm64-musl@1.8.3":
1961+
version "1.8.3"
1962+
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.8.3.tgz#44df284383d57cf4f28daeedd080dad7be05df78"
1963+
integrity sha512-9yjUfOFN7wrYsXt/T/gEWfvVxKlnh3yBpnScw98IF+oOeCYb5/b/+K7YNqKROV2i1DlMjg9g/EcN9wvj+NkMuQ==
1964+
1965+
"@biomejs/cli-linux-arm64@1.8.3":
1966+
version "1.8.3"
1967+
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.8.3.tgz#6a6b1da1dfce0294a028cbb5d6c40d73691dd713"
1968+
integrity sha512-fed2ji8s+I/m8upWpTJGanqiJ0rnlHOK3DdxsyVLZQ8ClY6qLuPc9uehCREBifRJLl/iJyQpHIRufLDeotsPtw==
1969+
1970+
"@biomejs/cli-linux-x64-musl@1.8.3":
1971+
version "1.8.3"
1972+
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.8.3.tgz#ceef30a8ee1a00d4ad31e32dd31ba2a661f2719d"
1973+
integrity sha512-UHrGJX7PrKMKzPGoEsooKC9jXJMa28TUSMjcIlbDnIO4EAavCoVmNQaIuUSH0Ls2mpGMwUIf+aZJv657zfWWjA==
1974+
1975+
"@biomejs/cli-linux-x64@1.8.3":
1976+
version "1.8.3"
1977+
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.8.3.tgz#665df74d19fb8f83001a9d80824d3a1723e2123f"
1978+
integrity sha512-I8G2QmuE1teISyT8ie1HXsjFRz9L1m5n83U1O6m30Kw+kPMPSKjag6QGUn+sXT8V+XWIZxFFBoTDEDZW2KPDDw==
1979+
1980+
"@biomejs/cli-win32-arm64@1.8.3":
1981+
version "1.8.3"
1982+
resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.8.3.tgz#0fb6f58990f4de0331a6ed22c47c66f5a89133cc"
1983+
integrity sha512-J+Hu9WvrBevfy06eU1Na0lpc7uR9tibm9maHynLIoAjLZpQU3IW+OKHUtyL8p6/3pT2Ju5t5emReeIS2SAxhkQ==
1984+
1985+
"@biomejs/cli-win32-x64@1.8.3":
1986+
version "1.8.3"
1987+
resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.8.3.tgz#6a9dc5a4e13357277da43c015cd5cdc374035448"
1988+
integrity sha512-/PJ59vA1pnQeKahemaQf4Nyj7IKUvGQSc3Ze1uIGi+Wvr1xF7rGobSrAAG01T/gUDG21vkDsZYM03NAmPiVkqg==
19891989

19901990
"@cnakazawa/watch@^1.0.3":
19911991
version "1.0.4"

0 commit comments

Comments
 (0)