Skip to content

Commit 45b3fa0

Browse files
authored
Remove scss/at-mixin-pattern rule (#279)
1 parent bf4d9cd commit 45b3fa0

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3535
- "number-no-trailing-zeros": true
3636
- "selector-list-comma-newline-after": "always"
3737
- "string-quotes": "single"
38+
- Removed scss/at-mixin-pattern rule. Resolves [#181](https://github.com/bjankord/stylelint-config-sass-guidelines/issues/181) and [#191](https://github.com/bjankord/stylelint-config-sass-guidelines/issues/191)
3839

3940
## [9.0.1]
4041
### Changed

__tests__/unit/name-format.spec.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $myVar: 10px;
2121
`)
2222

2323
test("Name format scss", t => {
24-
t.plan(5)
24+
t.plan(4)
2525

2626
postcss()
2727
.use(stylelint({ code: invalidScss, config: config,}))
@@ -30,18 +30,13 @@ test("Name format scss", t => {
3030
.catch(logError)
3131

3232
function checkResult(result) {
33-
t.equal(result.warnings().length, 4, "flags 4 warning")
33+
t.equal(result.warnings().length, 3, "flags 3 warning")
3434
var warningsArray = Object.values(result.warnings()).map(x => x.text);
3535
t.is(
3636
warningsArray.includes('Expected @function name to match specified pattern (scss/at-function-pattern)'),
3737
true,
3838
'correct warning text',
3939
)
40-
t.is(
41-
warningsArray.includes('Expected @mixin name to match specified pattern (scss/at-mixin-pattern)'),
42-
true,
43-
'correct warning text',
44-
)
4540
t.is(
4641
warningsArray.includes('Expected $ variable name to match specified pattern (scss/dollar-variable-pattern)'),
4742
true,

index.js

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ module.exports = {
4444
"scss/at-function-pattern": "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$",
4545
"scss/at-import-no-partial-leading-underscore": true,
4646
"scss/at-import-partial-extension-blacklist": ["scss"],
47-
"scss/at-mixin-pattern": "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$",
4847
"scss/at-rule-no-unknown": true,
4948
"scss/dollar-variable-colon-space-after": "always",
5049
"scss/dollar-variable-colon-space-before": "never",

0 commit comments

Comments
 (0)