Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #301

Merged
merged 4 commits into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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