From 516cfb6c5341859c33933643d8fea2a0f83400c9 Mon Sep 17 00:00:00 2001 From: rmcveigh Date: Thu, 7 Mar 2024 16:11:04 -0700 Subject: [PATCH] Replaced at-import-partial-extension-blacklist with at-import-partial-extension-disallowed-list --- README.md | 2 +- __tests__/unit/import-path.spec.js | 2 +- index.js | 2 +- page/de.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 278d773..f92f673 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ This is a list of the lints turned on in this configuration, and what they do. * [`scss/at-extend-no-missing-placeholder`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-extend-no-missing-placeholder/README.md): Disallow at-extends (`@extend`) with missing placeholders. * [`scss/at-function-pattern`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-function-pattern/README.md): SCSS functions must be written in lowercase and match the regex `^[a-z]+([a-z0-9-]+[a-z0-9]+)?$`. * [`scss/load-no-partial-leading-underscore`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/load-no-partial-leading-underscore/README.md): Disallow leading underscore in partial names in `@import`. -* [`scss/at-import-partial-extension-blacklist`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-import-partial-extension-blacklist/README.md): Specify list of disallowed file extensions for partial names in `@import` commands. +* [`scss/at-import-partial-extension-disallowed-list`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-import-partial-extension-disallowed-list/README.md): Specify list of disallowed file extensions for partial names in `@import` commands. * `.scss`: Disallow the use of the `.scss` file extension in imports. * [scss/`at-mixin-pattern`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-mixin-pattern/README.md): SCSS mixins must be written in lowercase and match the regex `^[a-z]+([a-z0-9-]+[a-z0-9]+)?$`. * [`scss/at-rule-no-unknown`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-rule-no-unknown/README.md): SCSS mixins must be written in lowercase and match the regex `^[a-z]+([a-z0-9-]+[a-z0-9]+)?$`. diff --git a/__tests__/unit/import-path.spec.js b/__tests__/unit/import-path.spec.js index 233fad3..4302496 100644 --- a/__tests__/unit/import-path.spec.js +++ b/__tests__/unit/import-path.spec.js @@ -29,7 +29,7 @@ test("Import path scss", t => { 'correct warning text', ) t.is( - warningsArray.includes('Unexpected extension \".scss\" in imported partial name (scss/at-import-partial-extension-blacklist)'), + warningsArray.includes('Unexpected extension \".scss\" in imported partial name (scss/at-import-partial-extension-disallowed-list)'), true, 'correct warning text', ) diff --git a/index.js b/index.js index 14b111c..f818176 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,7 @@ module.exports = { ], "scss/at-extend-no-missing-placeholder": true, "scss/at-function-pattern": "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$", - "scss/at-import-partial-extension-blacklist": ["scss"], + "scss/at-import-partial-extension-disallowed-list": ["scss"], "scss/at-rule-no-unknown": true, "scss/dollar-variable-colon-space-after": "always", "scss/dollar-variable-colon-space-before": "never", diff --git a/page/de.md b/page/de.md index 2ed2a4c..df2c296 100644 --- a/page/de.md +++ b/page/de.md @@ -135,7 +135,7 @@ Hier findest du eine Liste mit den voreingestellten Regel und was sie bewirken. * [`at-extend-no-missing-placeholder`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-extend-no-missing-placeholder/README.md): Verbiete at-extends (`@extend`) mit fehlendem Platzhalter. * [`at-function-pattern`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-function-pattern/README.md): SCSS Funktionen müssen klein geschrieben werden und diesem Regex entsprechen `^[a-z]+([a-z0-9-]+[a-z0-9]+)?$`. * [`at-import-no-partial-leading-underscore`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-import-no-partial-leading-underscore/README.md): Verbiete führende Unterstriche in partiellen Namen bei `@import`. -* [`at-import-partial-extension-blacklist`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-import-partial-extension-blacklist/README.md): Erstellt eine list von verbotenen Dateiendungen für partiellen name beim importieren. +* [`at-import-partial-extension-disallowed-list`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-import-partial-extension-disallowed-list/README.md): Erstellt eine list von verbotenen Dateiendungen für partiellen name beim importieren. * `.scss`: Verbiete das Nutzen von `.scss` Dateiendungen beim importieren. * [`at-mixin-pattern`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-mixin-pattern/README.md): SCSS Mixins müssen klein geschrieben werden und diesem Regex entsprechen `^[a-z]+([a-z0-9-]+[a-z0-9]+)?$`. * [`dollar-variable-colon-space-after`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/dollar-variable-colon-space-after/README.md): Benötigt ein Leerzeichen nach dem Doppelpunkt bei der $-variable Deklaration.