Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bjankord committed Dec 31, 2023
1 parent 70d2c7d commit 3765261
Show file tree
Hide file tree
Showing 27 changed files with 40 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [14, 16, 18]
node: [18, 20]
os: [ubuntu-latest]

steps:
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [11.0.0]
### Changed
- Updated package to be compatible with stylelint v16
- Replaced deprecated `"scss/at-import-no-partial-leading-underscore": true` rule with new `"scss/load-no-partial-leading-underscore": true` rule

### Removed
- Removed Node.js less than 18.12.0 support

## [10.0.0]
### Changed
- Updated package to be compatible with stylelint v15
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/border-zero.spec.js
Expand Up @@ -14,7 +14,7 @@ test("Border zero scss", t => {
t.plan(2)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/color-keyword.spec.js
Expand Up @@ -15,7 +15,7 @@ test("Color keyword scss", t => {
t.plan(2)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/debug-statement.spec.js
Expand Up @@ -17,7 +17,7 @@ test("Debug statement scss", t => {
t.plan(2)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/empty-line-between-blocks.spec.js
Expand Up @@ -20,7 +20,7 @@ test("Empty line between scss", t => {
t.plan(3)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/empty-rule.spec.js
Expand Up @@ -13,7 +13,7 @@ test("Empty rule scss", t => {
t.plan(2)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/hex-length.spec.js
Expand Up @@ -14,7 +14,7 @@ test("Hex length scss", t => {
t.plan(2)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/hex-validation.spec.js
Expand Up @@ -14,7 +14,7 @@ test("Hex validation scss", t => {
t.plan(2)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/id-selector.spec.js
Expand Up @@ -14,7 +14,7 @@ test("ID selector scss", t => {
t.plan(2)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
4 changes: 2 additions & 2 deletions __tests__/unit/import-path.spec.js
Expand Up @@ -15,7 +15,7 @@ test("Import path scss", t => {
t.plan(3)

postcss()
.use(stylelint({ code: invalidScss, config: config, }))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand All @@ -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 __tests__/unit/name-format.spec.js
Expand Up @@ -24,7 +24,7 @@ test("Name format scss", t => {
t.plan(4)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
4 changes: 2 additions & 2 deletions __tests__/unit/nesting-depth.spec.js
Expand Up @@ -40,7 +40,7 @@ test("Nesting depth scss", t => {
t.plan(6)

postcss()
.use(stylelint({ code: invalidScss, config: config }))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down Expand Up @@ -74,7 +74,7 @@ test("Nesting depth scss", t => {
}

postcss()
.use(stylelint({ code: validScss, config: config }))
.use(stylelint({ code: validScss, config: config, quietDeprecationWarnings: true, }))
.process(validScss, { syntax: scssSyntax })
.then(function(result) {
t.is(
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/placeholder-in-extend.spec.js
Expand Up @@ -14,7 +14,7 @@ test("Placeholder in extend scss", t => {
t.plan(2)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/property-spelling.spec.js
Expand Up @@ -15,7 +15,7 @@ test("Property spelling scss", t => {
t.plan(3)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/pseudo-element.spec.js
Expand Up @@ -18,7 +18,7 @@ test("Pseudo element scss", t => {
t.plan(3)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/qualifying-element.spec.js
Expand Up @@ -26,7 +26,7 @@ test("Qualifying element scss", t => {
t.plan(6)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/selector-depth.spec.js
Expand Up @@ -20,7 +20,7 @@ test("Selector depth scss", t => {
t.plan(3)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/selector-format.spec.js
Expand Up @@ -30,7 +30,7 @@ test("Selector format scss", t => {
t.plan(6)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/shorthand.spec.js
Expand Up @@ -14,7 +14,7 @@ test("Shorthand scss", t => {
t.plan(2)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/unnecessary-parent-reference.spec.js
Expand Up @@ -16,7 +16,7 @@ test("Unnecessary parent reference scss", t => {
t.plan(2)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/url-quotes.spec.js
Expand Up @@ -14,7 +14,7 @@ test("URL quotes scss", t => {
t.plan(2)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/valid-scss.spec.js
Expand Up @@ -330,7 +330,7 @@ test("Valid scss", t => {
t.plan(1)

postcss()
.use(stylelint({ code: validScss, config: config,}))
.use(stylelint({ code: validScss, config: config, quietDeprecationWarnings: true, }))
.process(validScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/vendor-prefixes.spec.js
Expand Up @@ -28,7 +28,7 @@ test("Vendor prefixes scss", t => {
t.plan(5)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/zero-unit.spec.js
Expand Up @@ -14,7 +14,7 @@ test("Zero unit scss", t => {
t.plan(2)

postcss()
.use(stylelint({ code: invalidScss, config: config,}))
.use(stylelint({ code: invalidScss, config: config, quietDeprecationWarnings: true, }))
.process(invalidScss, { syntax: scssSyntax })
.then(checkResult)
.catch(logError)
Expand Down
2 changes: 1 addition & 1 deletion index.js
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-no-partial-leading-underscore": true,
"scss/load-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",
Expand Down
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -23,23 +23,23 @@
"url": "https://github.com/bjankord/stylelint-config-sass-guidelines/issues"
},
"engines": {
"node": "^14.13.1 || >=16.13.0 || >=18.0.0"
"node": ">=18.12.0"
},
"main": "index.js",
"files": [
"index.js"
],
"dependencies": {
"postcss-scss": "^4.0.6",
"stylelint-scss": "^4.4.0"
"postcss-scss": "^4.0.9",
"stylelint-scss": "^6.0.0"
},
"peerDependencies": {
"postcss": "^8.4.21",
"stylelint": "^15.2.0"
"stylelint": "^16.1.0"
},
"devDependencies": {
"postcss": "^8.4.21",
"stylelint": "^15.2.0",
"stylelint": "^16.1.0",
"tape": "^5.6.3"
},
"scripts": {
Expand Down

0 comments on commit 3765261

Please sign in to comment.