stylelint-config-css-modules
stylelint-config-css-modules copied to clipboard
Add support for detecting invalid @value syntax
Writing css like this:
@value small, large, from './breakpoints.css';
will fail while compiling (due to the trailing comma after large). Would it be possible for this plugin to add linting for this case?
Hi,
this project is actually not a plugin but just a config, grouping already available rules. What you describe would indeed need a plugin with some cutom rule(s).
OK, I understand. I'd been looking into how to write stylelint plugins myself... Would this feature request be in scope for this project, or should it be something separate?
I guess if there's a need for more specidifc rules then yes we could write a plugin.
The naming would be different (stylelint-css-modules
for instance) so obviously another package.
And then the config could be part of it.