Skip to content

chore: migrate to rslint and prettier#8

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/chore-migrate-rslint-prettier
Apr 28, 2026
Merged

chore: migrate to rslint and prettier#8
chenjiahan merged 1 commit into
mainfrom
chenjiahan/chore-migrate-rslint-prettier

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary:

  • This PR replaces Biome with Rslint and Prettier so linting and formatting match the current rsbuild plugin template.
  • It updates lint scripts, pre-commit hook, VS Code recommendations, and formatter config.
  • It removes obsolete Biome suppressions from Vue module shims and lets Prettier normalize existing docs and workflow formatting.

Copilot AI review requested due to automatic review settings April 28, 2026 13:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the repository’s linting/formatting setup from Biome to Rslint + Prettier to align with the current rsbuild plugin template and standardize editor/CI formatting.

Changes:

  • Replace Biome tooling/config with @rslint/core and prettier, including new config files.
  • Update package scripts and git hooks to run rslint and Prettier checks/fixes.
  • Normalize formatting across docs and GitHub workflow/config files; remove Biome suppressions from Vue shim typings.

Reviewed changes

Copilot reviewed 11 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/rslib/src/env.d.ts Removes Biome suppression comments and simplifies Vue module shim typing.
test/rsbuild/src/env.d.ts Removes Biome suppression comments and simplifies Vue module shim typing.
playground/rsbuild/src/env.d.ts Removes Biome suppression comments and simplifies Vue module shim typing.
rslint.config.ts Adds Rslint configuration (TypeScript recommended preset).
package.json Swaps scripts/hooks from Biome to Rslint + Prettier; updates devDependencies accordingly.
biome.json Removes obsolete Biome configuration.
.prettierrc Adds Prettier configuration (singleQuote).
.prettierignore Adds ignore patterns to avoid formatting generated/artifact files and lockfile.
.vscode/settings.json Switches default formatter to Prettier extension.
.vscode/extensions.json Recommends Rslint + Prettier VS Code extensions.
.github/workflows/test.yml Formatting normalization consistent with Prettier (quote style).
.github/workflows/release.yml Formatting normalization consistent with Prettier (quote style).
.github/renovate.json5 Formatting normalization consistent with Prettier (JSON5 style).
README.md Prettier-normalized code examples (semicolons/formatting).
pnpm-lock.yaml Updates lockfile for removed Biome + added Rslint/Prettier dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan merged commit 564e50c into main Apr 28, 2026
6 checks passed
@chenjiahan chenjiahan deleted the chenjiahan/chore-migrate-rslint-prettier branch April 28, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants