Replies: 1 comment 2 replies
-
All recommended rules emit errors. Only noUndeclaredVariables and useHookAtTopLevel are not recommended and in the correctness group. Are you referring to these rules? We are planning to change this by using error for correctness and warning for other groups. We could also allow configuring the severity at a group level. It is still under discussion. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was surprised to see "correctness" diagnostics were emitted with "warning" severity and was hoping to find an easy way to configure all correctness rules to run at the "error" level instead.
I see that the CLI can be run with
--error-on-warnings
to treat all "warning" diagnostics as errors. It could be nice to have more control over which groups were treated as errors.For example, I was hoping I could do something like this:
Would it be possible for the
linter.rules.[group].all
to be configured with aRulePlainConfiguration
in addition to a boolean?Beta Was this translation helpful? Give feedback.
All reactions