Skip to content

Commit

Permalink
Update to Stylelint 16.0.2 and switch to @stylistic/stylelint-plugin (#…
Browse files Browse the repository at this point in the history
…236)

BREAKING CHANGES:

* requires Node.js 18.12.0 due to upstream requirements
* switched from the deprecated stylelint-stylistic package to @stylistic/stylelint-plugin so you may need to adapt any custom overrides/rules (stylistic -> @Stylistic prefix)
  • Loading branch information
XhmikosR authored Dec 23, 2023
1 parent 9c4f031 commit d208a47
Show file tree
Hide file tree
Showing 5 changed files with 331 additions and 2,334 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [14, 16, 18, 20]
node: [18, 20]

steps:
- name: Clone repository
Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

34 changes: 17 additions & 17 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
'extends': [
'stylelint-config-standard',
'stylelint-config-recess-order',
'stylelint-stylistic/config'
'@stylistic/stylelint-config'
],
'rules': {
'alpha-value-notation': null,
Expand Down Expand Up @@ -40,22 +40,22 @@ module.exports = {
'selector-max-universal': 1,
'selector-no-qualifying-type': true,
'selector-not-notation': null, // TODO enable this later
'stylistic/at-rule-name-space-after': 'always',
'stylistic/at-rule-semicolon-space-before': 'never',
'stylistic/block-closing-brace-empty-line-before': null,
'stylistic/block-closing-brace-newline-after': null,
'stylistic/block-opening-brace-space-before': null,
'stylistic/declaration-block-semicolon-newline-before': 'never-multi-line',
'stylistic/max-empty-lines': 2,
'stylistic/max-line-length': null,
'stylistic/number-leading-zero': 'never',
'stylistic/selector-list-comma-newline-before': 'never-multi-line',
'stylistic/selector-list-comma-space-after': 'always-single-line',
'stylistic/selector-list-comma-space-before': 'never-single-line',
'stylistic/unicode-bom': 'never',
'stylistic/value-list-comma-newline-after': 'never-multi-line',
'stylistic/value-list-comma-newline-before': 'never-multi-line',
'stylistic/value-list-comma-space-after': 'always'
'@stylistic/at-rule-name-space-after': 'always',
'@stylistic/at-rule-semicolon-space-before': 'never',
'@stylistic/block-closing-brace-empty-line-before': null,
'@stylistic/block-closing-brace-newline-after': null,
'@stylistic/block-opening-brace-space-before': null,
'@stylistic/declaration-block-semicolon-newline-before': 'never-multi-line',
'@stylistic/max-empty-lines': 2,
'@stylistic/max-line-length': null,
'@stylistic/number-leading-zero': 'never',
'@stylistic/selector-list-comma-newline-before': 'never-multi-line',
'@stylistic/selector-list-comma-space-after': 'always-single-line',
'@stylistic/selector-list-comma-space-before': 'never-single-line',
'@stylistic/unicode-bom': 'never',
'@stylistic/value-list-comma-newline-after': 'never-multi-line',
'@stylistic/value-list-comma-newline-before': 'never-multi-line',
'@stylistic/value-list-comma-space-after': 'always'
},
'overrides': [
{
Expand Down
Loading

0 comments on commit d208a47

Please sign in to comment.