Skip to content

Commit

Permalink
Update dependencies (#301)
Browse files Browse the repository at this point in the history
* Update dependencies

* Update README.md

* Update package-lock.json
  • Loading branch information
bjankord committed Dec 31, 2023
1 parent 3f36ca8 commit 9cecbe9
Show file tree
Hide file tree
Showing 28 changed files with 1,125 additions and 1,067 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
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -13,7 +13,7 @@ This linter has been designed / tested with SCSS syntax based on the SCSS guidel
This config:
- bundles the [`stylelint-scss` plugin pack](https://github.com/stylelint-scss/stylelint-scss) and turns on its rules that check for possible errors
- bundles the [`postcss-scss` custom syntax](https://github.com/postcss/postcss-scss) and configures it
- has a peer dependency on [`stylelint ^15.2.0`](https://github.com/stylelint/stylelint) You'll need to install this package in your project
- has a peer dependency on [`stylelint ^16.1.0`](https://github.com/stylelint/stylelint) You'll need to install this package in your project
- has a peer dependency on [`postcss ^8.4.21`](https://github.com/postcss/postcss) You'll need to install this package in your project

# Translations
Expand Down Expand Up @@ -116,7 +116,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/at-import-no-partial-leading-underscore`](https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-import-no-partial-leading-underscore/README.md): Disallow leading underscore in partial names in `@import`.
* [`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`: 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]+)?$`.
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
2 changes: 1 addition & 1 deletion __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 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

0 comments on commit 9cecbe9

Please sign in to comment.