diff --git a/CHANGELOG.md b/CHANGELOG.md index 1052d4a..786f04a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - "number-no-trailing-zeros": true - "selector-list-comma-newline-after": "always" - "string-quotes": "single" +- 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) ## [9.0.1] ### Changed diff --git a/__tests__/unit/name-format.spec.js b/__tests__/unit/name-format.spec.js index 7e6ada0..c17f69f 100644 --- a/__tests__/unit/name-format.spec.js +++ b/__tests__/unit/name-format.spec.js @@ -21,7 +21,7 @@ $myVar: 10px; `) test("Name format scss", t => { - t.plan(5) + t.plan(4) postcss() .use(stylelint({ code: invalidScss, config: config,})) @@ -30,18 +30,13 @@ test("Name format scss", t => { .catch(logError) function checkResult(result) { - t.equal(result.warnings().length, 4, "flags 4 warning") + t.equal(result.warnings().length, 3, "flags 3 warning") var warningsArray = Object.values(result.warnings()).map(x => x.text); t.is( warningsArray.includes('Expected @function name to match specified pattern (scss/at-function-pattern)'), true, 'correct warning text', ) - t.is( - warningsArray.includes('Expected @mixin name to match specified pattern (scss/at-mixin-pattern)'), - true, - 'correct warning text', - ) t.is( warningsArray.includes('Expected $ variable name to match specified pattern (scss/dollar-variable-pattern)'), true, diff --git a/index.js b/index.js index 3bcb1b6..33a0dce 100644 --- a/index.js +++ b/index.js @@ -44,7 +44,6 @@ module.exports = { "scss/at-function-pattern": "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$", "scss/at-import-no-partial-leading-underscore": true, "scss/at-import-partial-extension-blacklist": ["scss"], - "scss/at-mixin-pattern": "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$", "scss/at-rule-no-unknown": true, "scss/dollar-variable-colon-space-after": "always", "scss/dollar-variable-colon-space-before": "never",