Skip to content

Commit 90606ba

Browse files
authored
chore: migrate linting to Rslint and Prettier (#29)
1 parent 7690329 commit 90606ba

11 files changed

Lines changed: 114 additions & 153 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
# Run `npm run bump` to bump the version and create a git tag.
66
push:
77
tags:
8-
- "v*"
8+
- 'v*'
99

1010
workflow_dispatch:
1111

@@ -46,4 +46,4 @@ jobs:
4646
- name: Create GitHub Release
4747
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1
4848
with:
49-
generateReleaseNotes: "true"
49+
generateReleaseNotes: 'true'

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
3131
with:
3232
node-version: 24.15.0
33-
cache: "pnpm"
33+
cache: 'pnpm'
3434

3535
- name: Install Dependencies
3636
run: pnpm install

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore artifacts:
2+
dist
3+
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: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
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-
}
3+
"editor.defaultFormatter": "esbenp.prettier-vscode"
184
}

biome.json

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

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,30 @@
1515
},
1616
"module": "./dist/index.mjs",
1717
"types": "./dist/index.d.ts",
18-
"files": ["dist"],
18+
"files": [
19+
"dist"
20+
],
1921
"scripts": {
2022
"build": "rslib",
2123
"dev": "rslib -w",
22-
"lint": "biome check .",
23-
"lint:write": "biome check . --write",
24+
"lint": "rslint && prettier -c .",
25+
"lint:write": "rslint --fix && prettier -w .",
2426
"prepare": "simple-git-hooks && rslib",
2527
"test": "rstest",
2628
"bump": "npx bumpp"
2729
},
2830
"simple-git-hooks": {
29-
"pre-commit": "npm run lint:write"
31+
"pre-commit": "pnpm run lint:write"
3032
},
3133
"devDependencies": {
32-
"@biomejs/biome": "^1.9.4",
3334
"@rslib/core": "^0.21.3",
35+
"@rslint/core": "^0.5.1",
3436
"@rstest/core": "^0.9.10",
3537
"@types/node": "^24.12.2",
3638
"case-police": "^2.2.1",
3739
"pathe": "^2.0.3",
3840
"picocolors": "^1.1.1",
41+
"prettier": "^3.8.3",
3942
"rslog": "^2.1.1",
4043
"simple-git-hooks": "^2.13.1",
4144
"tinyglobby": "^0.2.16",

pnpm-lock.yaml

Lines changed: 91 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { defineConfig, js, ts } from '@rslint/core';
2+
3+
export default defineConfig([js.configs.recommended, ts.configs.recommended]);

0 commit comments

Comments
 (0)