notes/node_modules/stylelint-scss/src/rules/at-mixin-pattern/README.md

30 lines
516 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# at-mixin-pattern
Specify a pattern for Sass/SCSS-like mixin names.
```scss
@mixin complex-object ($items: 10) {
/** ↑
* The pattern of this */
```
## Options
`regex` or `string`
A string will be translated into a RegExp like so `new RegExp(yourString)` so be sure to escape properly.
### E.g. `/foo-.+/`
The following patterns are considered warnings:
```scss
@mixin boo-bar {
```
The following patterns are *not* considered warnings:
```scss
@mixin foo-bar {
```