Skip to content

Commit

Permalink
stylelint-scss: 4.5.0 -> 5.3.2 (#300)
Browse files Browse the repository at this point in the history
In v5.3.0 (see [0]), the rule
'scss/at-import-no-partial-leading-underscore' has been deprecated and
replaced by 'scss/load-no-partial-leading-underscore'.

No functional change expected.

[0] https://github.com/stylelint-scss/stylelint-scss/releases/tag/v5.3.0
  • Loading branch information
Hyzual committed Dec 31, 2023
1 parent 70d2c7d commit 3f36ca8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 32 deletions.
2 changes: 1 addition & 1 deletion __tests__/unit/import-path.spec.js
Expand Up @@ -24,7 +24,7 @@ test("Import path scss", t => {
t.equal(result.warnings().length, 6, "flags 6 warning")
var warningsArray = Object.values(result.warnings()).map(x => x.text);
t.is(
warningsArray.includes('Unexpected leading underscore in imported partial name (scss/at-import-no-partial-leading-underscore)'),
warningsArray.includes('Unexpected leading underscore in imported partial name (scss/load-no-partial-leading-underscore)'),
true,
'correct warning text',
)
Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -42,12 +42,12 @@ module.exports = {
],
"scss/at-extend-no-missing-placeholder": true,
"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-rule-no-unknown": true,
"scss/dollar-variable-colon-space-after": "always",
"scss/dollar-variable-colon-space-before": "never",
"scss/dollar-variable-pattern": "^[_]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$",
"scss/load-no-partial-leading-underscore": true,
"scss/no-global-function-names": true,
"scss/percent-placeholder-pattern": "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$",
"scss/selector-no-redundant-nesting-selector": true,
Expand Down
61 changes: 32 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -31,7 +31,7 @@
],
"dependencies": {
"postcss-scss": "^4.0.6",
"stylelint-scss": "^4.4.0"
"stylelint-scss": "^5.3.2"
},
"peerDependencies": {
"postcss": "^8.4.21",
Expand Down

0 comments on commit 3f36ca8

Please sign in to comment.