flutter_corelibrary
flutter_corelibrary copied to clipboard
Rename `use_design_system_item` to something more accurate
I think the name of the use_design_system_item lint rule is too specific for what it is actually capable of. It can be used for classes that are not related to design system (though I agree it's the most common use case, and the migration cost probably outweights the (lack of) benefits).
What name would you suggest? I am open to changing it if we come up with a good name
This lint rule essentially accepts a list of classes, I think the lint name should reflect this – i.e. the name should contain a plural:
Some ideas:
class_replacements/replace_classestype_replacements/replace_types(this lint also works for enums/typedefs, right?)custom_type_replacements
Here's what ChatGPT generated
I suggest the 'avoid-banned-phase-usage' name for this rule. use_design_system_item is a limiting name. I think any alternative is more preferable