Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

Commit 2c60f40

Browse files
committed
chore: migrate linting to biome
1 parent 7db7f56 commit 2c60f40

4 files changed

Lines changed: 5044 additions & 5028 deletions

File tree

.eslintrc.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

biome.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"formatter": {
4+
"indentStyle": "space",
5+
"indentWidth": 2,
6+
"lineWidth": 100
7+
},
8+
"javascript": {
9+
"formatter": {
10+
"quoteStyle": "single",
11+
"semicolons": "asNeeded"
12+
}
13+
},
14+
"linter": {
15+
"rules": {
16+
"recommended": true
17+
}
18+
}
19+
}

package.json

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"bump:dev": "ncu --upgrade --dep dev --target minor",
3838
"bump:prod": "ncu --upgrade --dep prod --target minor",
3939
"bump:all": "pnpm run bump:dev && pnpm run bump:prod",
40-
"fix:style": "prettier --no-semi --print-width 100 --single-quote --trailing-comma none --write '**/*.ts' && standardx --fix '**/*.ts'",
41-
"check:lint": "eslint --format=codeframe '**/*.ts' && standardx",
40+
"fix:style": "biome check --write .",
41+
"check:lint": "biome check .",
4242
"commit": "cz",
4343
"prerelease": "ts-node pre-release-steps.ts",
4444
"test": "jest --verbose --collect-coverage"
@@ -69,7 +69,7 @@
6969
],
7070
"lint-staged": {
7171
"**/*.ts": [
72-
"pnpm run fix:style"
72+
"biome check --write --files"
7373
]
7474
},
7575
"config": {
@@ -113,31 +113,19 @@
113113
}
114114
},
115115
"devDependencies": {
116+
"@biomejs/biome": "^1.8.3",
116117
"@commitlint/cli": "^16.2.3",
117118
"@commitlint/config-conventional": "^16.2.1",
118119
"@types/jest": "^27.4.1",
119120
"@types/node": "^17.0.23",
120-
"@typescript-eslint/eslint-plugin": "^5.19.0",
121-
"@typescript-eslint/parser": "^5.19.0",
122121
"axios": "^0.26.1",
123122
"commitizen": "^4.2.4",
124123
"cz-conventional-changelog": "^3.3.0",
125-
"eslint": "^8.13.0",
126-
"eslint-config-standard-jsx": "^10.0.0",
127-
"eslint-config-standard-with-typescript": "^21.0.1",
128-
"eslint-formatter-codeframe": "^7.32.1",
129-
"eslint-plugin-import": "^2.26.0",
130-
"eslint-plugin-jest": "^26.1.4",
131-
"eslint-plugin-node": "^11.1.0",
132-
"eslint-plugin-promise": "6.0.0",
133-
"eslint-plugin-react": "^7.29.4",
134124
"file-to-sha512": "^0.0.1",
135125
"husky": "^7.0.4",
136126
"jest": "^27.5.1",
137127
"lint-staged": "^12.3.7",
138128
"npm-check-updates": "^12.5.9",
139-
"prettier": "^2.6.2",
140-
"standardx": "^7.0.0",
141129
"ts-jest": "^27.1.4",
142130
"ts-loader": "^9.2.8",
143131
"ts-node": "^10.7.0",

0 commit comments

Comments
 (0)