Skip to content

Commit

Permalink
Replaced at-import-partial-extension-blacklist with at-import-partial…
Browse files Browse the repository at this point in the history
…-extension-disallowed-list (#317)
  • Loading branch information
rmcveigh authored Mar 8, 2024
1 parent f1de283 commit b61c695
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]+)?$`.
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/import-path.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion page/de.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b61c695

Please sign in to comment.