Skip to content

[PR welcome]: Fix Rslint lint issues in the Rspack codebase #11761

@chenjiahan

Description

@chenjiahan

Goal

We use Rslint to catch potential type-related issues in our code.

Currently, some rules in rslint.json are set to warn and have not been fully fixed yet.

Pick one lint rule, change it from warnerror in rslint.json, and fix the reported issues in the TypeScript source code.

🤝 If you’re interested in participating in the Rspack project, this is a great starting point.

How to work on this

  1. Open rslint.json and choose one rule that is currently set to "warn".

  2. Change its level from "warn" to "error".

  3. Run:

    pnpm lint:type --quiet

    This will show the type-lint errors for that rule.

  4. Fix the reported issues in the TypeScript files.

  5. Commit the changes and open a Pull Request.

💡 Important: Each PR should focus on only one rule to keep reviews small and clear.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions