[PR welcome]: Fix Rslint lint issues in the Rspack codebase
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 warn → error 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
-
Open
rslint.jsonand choose one rule that is currently set to"warn". -
Change its level from
"warn"to"error". -
Run:
pnpm lint:type --quietThis will show the type-lint errors for that rule.
-
Fix the reported issues in the TypeScript files.
-
Commit the changes and open a Pull Request.
💡 Important: Each PR should focus on only one rule to keep reviews small and clear.
can u assigne it to me please?
Done 😄
If possible, you could share which rules you’re currently working on. That way, other interested contributors can join in, since we have many rules that need to be fixed.
I've fixed a rule @typescript-eslint/no-empty-interface, that's PR.
And another one @typescript-eslint/no-require-imports.