Rule idea: mixin-name-pattern, function-name-pattern
See original GitHub issueOr mixin-pattern
, function-pattern
to follow the existing stylelint rule naming conventions.
stylelint-scss already has a rule for placeholder names, the one for variable names is in a PR now. The subject rules are the ones missing. SCSS-lint has those (though in a format of one general naming rule for Sass stuff). I could take implementing them, seems not that hard.
The only question I have: should some general patterns like lowercase-underscore
, etc. be imlpemented as predefined primary option values (like in SCSS-lint)? If yes, what predefined patterns would you recommend to use?
Issue Analytics
- State:
- Created 7 years ago
- Comments:11
Top Results From Across the Web
Rule idea: mixin-name-pattern, function-name-pattern #12
I could take implementing them, seems not that hard. The only question I have: should some general patterns like lowercase-underscore , etc. be ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As you both spotted, there are no default primary options for stylelint rules. It was a conscience decision to both keeps the rules unopinionated and to mitigate having to deliberate on what the defaults options should be 😃
There’s no harm in documenting those regexs though in the READMEs though.
stylelint-scss-like
😃That sounds sensible. There probably won’t be much overlap with Less, but I think they’ll be plenty with postcss plugins (with the likes of precss and these language extensions). I think no longer relying on developer discipline by crafting your own processor is going to become more popular, and so supporting this approach might add a bit more longevity to this project.