Skip to content

Commit 14a7874

Browse files
authored
chore: switch to Rslint for linting (#113)
1 parent f188af8 commit 14a7874

8 files changed

Lines changed: 94 additions & 150 deletions

File tree

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm-lock.yaml

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["biomejs.biome"]
2+
"recommendations": ["rstack.rslint", "esbenp.prettier-vscode"]
33
}

.vscode/settings.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
11
{
22
"search.useIgnoreFiles": true,
3-
"[json]": {
4-
"editor.defaultFormatter": "biomejs.biome"
5-
},
6-
"[typescript]": {
7-
"editor.defaultFormatter": "biomejs.biome"
8-
},
9-
"[javascript]": {
10-
"editor.defaultFormatter": "biomejs.biome"
11-
},
12-
"[javascriptreact]": {
13-
"editor.defaultFormatter": "biomejs.biome"
14-
},
15-
"[css]": {
16-
"editor.defaultFormatter": "biomejs.biome"
17-
}
183
}

biome.json

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
"scripts": {
2626
"build": "rslib",
2727
"dev": "rslib --watch",
28-
"lint": "biome check .",
29-
"lint:write": "biome check . --write",
28+
"lint": "rslint",
3029
"prepare": "simple-git-hooks && rslib",
3130
"test": "rstest",
3231
"bump": "npx bumpp"
@@ -36,14 +35,14 @@
3635
},
3736
"nano-staged": {
3837
"*.{js,jsx,ts,tsx,mjs,cjs}": [
39-
"biome check --write --no-errors-on-unmatched"
38+
"rslint && prettier --write"
4039
]
4140
},
4241
"devDependencies": {
43-
"@biomejs/biome": "2.4.9",
4442
"@clack/prompts": "^1.1.0",
4543
"@microsoft/api-extractor": "^7.57.7",
4644
"@rslib/core": "0.20.1",
45+
"@rslint/core": "^0.3.3",
4746
"@rstest/core": "0.9.5",
4847
"@types/cross-spawn": "^6.0.6",
4948
"@types/fs-extra": "^11.0.4",
@@ -54,6 +53,7 @@
5453
"deepmerge": "^4.3.1",
5554
"fs-extra": "^11.3.4",
5655
"minimist": "^1.2.8",
56+
"prettier": "^3.8.1",
5757
"rimraf": "^6.1.3",
5858
"rslog": "^2.1.0",
5959
"simple-git-hooks": "^2.13.1",

pnpm-lock.yaml

Lines changed: 79 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rslint.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { defineConfig, ts } from '@rslint/core';
2+
3+
export default defineConfig([
4+
{ ignores: ['**/dist/**'] },
5+
ts.configs.recommended,
6+
]);

0 commit comments

Comments
 (0)