oxc-project / eslint-plugin-oxlint

Turn off all rules already supported by oxlint
MIT License
186 stars 12 forks source link

`@typescript-eslint/prefer-as-const` is incorrectly categorized as `conditionalFix` rather than `correctness` #195

Closed haoqunjiang closed 1 month ago

haoqunjiang commented 1 month ago

https://github.com/oxc-project/eslint-plugin-oxlint/blob/c61716f3e04c94538eaf44a3c582a40f71889c53/src/rules-by-category.ts#L152

The rule source: https://github.com/oxc-project/oxc/blob/57685b28e865f50b4127a6bb94059c1d24a8bafe/crates/oxc_linter/src/rules/typescript/prefer_as_const.rs#L42

If I understand correctly, conditionalFix isn't an actual category but a "fixability meta".

I guess it's because the regexp at https://github.com/oxc-project/eslint-plugin-oxlint/blob/c61716f3e04c94538eaf44a3c582a40f71889c53/scripts/traverse-rules.ts#L109 hasn't been updated after https://github.com/oxc-project/oxc/pull/4560