question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rule idea: mixin-name-pattern, function-name-pattern

See original GitHub issue

Or 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:closed
  • Created 7 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
jeddy3commented, Apr 28, 2016

Does stylelint use default options in rules?

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.

0reactions
jeddy3commented, May 3, 2016

Any suggestions?

stylelint-scss-like 😃

Maybe this plugin should also handle edge cases for other parsers (LESS, postcss plugins)?

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found