simonsmith / stylelint-selector-bem-pattern

Stylelint plugin that incorporates postcss-bem-linter
MIT License
244 stars 13 forks source link

Feature request: Add option to warn about all selectors that cannot be tested #58

Closed openjck closed 6 months ago

openjck commented 2 years ago

Thanks for authoring this plugin.

I'd like to request that the plugin warn whenever it encounters a selector that it cannot test. I've been using this plugin for the last week and my team has been using it for longer than that, but it only occurred to us yesterday that the plugin doesn't do much unless @define comments are provided. I see that the person who opened #35 was confused about the same thing.

Perhaps an option like warnAboutUnknown could be supported that, if set to true, would raise a warning whenever it encounters a selector that does not match a provided @define comment. The warning would tip the developer off to the fact that the plugin can't test the named selector for BEM/SUIT compliance until a @define comment is provided.

Please correct me if I'm mistaken about something. Thank you! 🙂