test(linter): add tests for missing rule config#23140
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merging this PR will not alter performance
Comparing Footnotes
|
f95e376 to
97e0414
Compare
Merge activity
|
follow up from #23139 Added tests when a test-case has an option but the `rule.has_config()`, making sure this code path will never hit for rules which should have a config: https://github.com/oxc-project/oxc/blob/01b74c4e84696950add4b813b0dfa2600c459f09/crates/oxc_linter/src/config/rules.rs#L158-L165 On the way I found some rules where the test-cases shown us options for rules, which we do not support atm.
aac7be9 to
e78e75b
Compare

follow up from #23139
Added tests when a test-case has an option but the
rule.has_config(), making sure this code path will never hit for rules which should have a config:oxc/crates/oxc_linter/src/config/rules.rs
Lines 158 to 165 in 01b74c4
On the way I found some rules where the test-cases shown us options for rules, which we do not support atm.