stylelint-config-css-modules icon indicating copy to clipboard operation
stylelint-config-css-modules copied to clipboard

Add support for detecting invalid @value syntax

Open kumarharsh opened this issue 7 years ago • 3 comments

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?

kumarharsh avatar Dec 28 '16 08:12 kumarharsh

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).

pascalduez avatar Dec 28 '16 10:12 pascalduez

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?

kumarharsh avatar Dec 28 '16 11:12 kumarharsh

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.

pascalduez avatar Dec 28 '16 15:12 pascalduez