Add meta.fixable
property to each rule
#6099
Labels
status: ready to implement
is ready to be worked on by someone
type: enhancement
a new feature that isn't related to rules
What is the problem you're trying to solve?
Similar discussion: #5842
If each rule would have metadata about autofixable or not, I think it would be useful for the following cases:
verbose
formatter could suggest autofixable rules if the rules errors are foundWhat solution would you like to see?
It just adds the
autofixable
boolean property to theRuleMeta
type as below:stylelint/types/stylelint/index.d.ts
Lines 163 to 166 in 23dfa32
export type RuleMeta = { url: string; deprecated?: boolean; + autofixable?: boolean; };
Perhaps, the name
autofixable
may be debatable (fixable
is better?). Please give me feedback, if any.The text was updated successfully, but these errors were encountered: