You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMHO, this doesn't really remove the need for parseConfig conceptually, but it would make it so that it doesn't also need to validate. Specifically, it is still very useful to be able to normalize any number of valid user-land configurations into a single format that you can rely on internally in the rule (thus avoiding repeated guards or branching logic for different types of user provided config).
This would match ESLint behavior: https://eslint.org/docs/developer-guide/working-with-rules#options-schemas
This would likely be in a
meta.schema
property on each rule, the same as eslint, and using the samemeta
object that was under consideration in #943.There are many benefits:
parseConfig()
function)The text was updated successfully, but these errors were encountered: