-
Notifications
You must be signed in to change notification settings - Fork 11
chore: switch to Rslint for linting #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| pnpm-lock.yaml | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "singleQuote": true | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| "recommendations": ["biomejs.biome"] | ||
| "recommendations": ["rstack.rslint", "esbenp.prettier-vscode"] | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,18 +1,3 @@ | ||||||
| { | ||||||
| "search.useIgnoreFiles": true, | ||||||
|
||||||
| "search.useIgnoreFiles": true, | |
| "search.useIgnoreFiles": true |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,8 +25,7 @@ | |
| "scripts": { | ||
| "build": "rslib", | ||
| "dev": "rslib --watch", | ||
| "lint": "biome check .", | ||
| "lint:write": "biome check . --write", | ||
| "lint": "rslint", | ||
| "prepare": "simple-git-hooks && rslib", | ||
| "test": "rstest", | ||
| "bump": "npx bumpp" | ||
|
|
@@ -36,14 +35,14 @@ | |
| }, | ||
| "nano-staged": { | ||
| "*.{js,jsx,ts,tsx,mjs,cjs}": [ | ||
| "biome check --write --no-errors-on-unmatched" | ||
| "rslint && prettier --write" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current To fix this and improve efficiency, list "rslint",
"prettier --write"There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Use separate Useful? React with 👍 / 👎. |
||
| ] | ||
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "2.4.9", | ||
| "@clack/prompts": "^1.1.0", | ||
| "@microsoft/api-extractor": "^7.57.7", | ||
| "@rslib/core": "0.20.1", | ||
| "@rslint/core": "^0.3.3", | ||
| "@rstest/core": "0.9.5", | ||
| "@types/cross-spawn": "^6.0.6", | ||
| "@types/fs-extra": "^11.0.4", | ||
|
|
@@ -54,6 +53,7 @@ | |
| "deepmerge": "^4.3.1", | ||
| "fs-extra": "^11.3.4", | ||
| "minimist": "^1.2.8", | ||
| "prettier": "^3.8.1", | ||
| "rimraf": "^6.1.3", | ||
| "rslog": "^2.1.0", | ||
| "simple-git-hooks": "^2.13.1", | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import { defineConfig, ts } from '@rslint/core'; | ||
|
|
||
| export default defineConfig([ | ||
| { ignores: ['**/dist/**'] }, | ||
| ts.configs.recommended, | ||
| ]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.prettierignorecurrently ignores onlypnpm-lock.yaml. Sincedist/and test output directories are generated (and already ignored by git / rslint), consider adding them here too soprettier --write .won’t reformat build artifacts by accident.