Skip to content

Commit d208a47

Browse files
authored
Update to Stylelint 16.0.2 and switch to @stylistic/stylelint-plugin (#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)
1 parent 9c4f031 commit d208a47

File tree

5 files changed

+331
-2334
lines changed

5 files changed

+331
-2334
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
node: [14, 16, 18, 20]
21+
node: [18, 20]
2222

2323
steps:
2424
- name: Clone repository

.npmrc

-1
This file was deleted.

index.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
'extends': [
55
'stylelint-config-standard',
66
'stylelint-config-recess-order',
7-
'stylelint-stylistic/config'
7+
'@stylistic/stylelint-config'
88
],
99
'rules': {
1010
'alpha-value-notation': null,
@@ -40,22 +40,22 @@ module.exports = {
4040
'selector-max-universal': 1,
4141
'selector-no-qualifying-type': true,
4242
'selector-not-notation': null, // TODO enable this later
43-
'stylistic/at-rule-name-space-after': 'always',
44-
'stylistic/at-rule-semicolon-space-before': 'never',
45-
'stylistic/block-closing-brace-empty-line-before': null,
46-
'stylistic/block-closing-brace-newline-after': null,
47-
'stylistic/block-opening-brace-space-before': null,
48-
'stylistic/declaration-block-semicolon-newline-before': 'never-multi-line',
49-
'stylistic/max-empty-lines': 2,
50-
'stylistic/max-line-length': null,
51-
'stylistic/number-leading-zero': 'never',
52-
'stylistic/selector-list-comma-newline-before': 'never-multi-line',
53-
'stylistic/selector-list-comma-space-after': 'always-single-line',
54-
'stylistic/selector-list-comma-space-before': 'never-single-line',
55-
'stylistic/unicode-bom': 'never',
56-
'stylistic/value-list-comma-newline-after': 'never-multi-line',
57-
'stylistic/value-list-comma-newline-before': 'never-multi-line',
58-
'stylistic/value-list-comma-space-after': 'always'
43+
'@stylistic/at-rule-name-space-after': 'always',
44+
'@stylistic/at-rule-semicolon-space-before': 'never',
45+
'@stylistic/block-closing-brace-empty-line-before': null,
46+
'@stylistic/block-closing-brace-newline-after': null,
47+
'@stylistic/block-opening-brace-space-before': null,
48+
'@stylistic/declaration-block-semicolon-newline-before': 'never-multi-line',
49+
'@stylistic/max-empty-lines': 2,
50+
'@stylistic/max-line-length': null,
51+
'@stylistic/number-leading-zero': 'never',
52+
'@stylistic/selector-list-comma-newline-before': 'never-multi-line',
53+
'@stylistic/selector-list-comma-space-after': 'always-single-line',
54+
'@stylistic/selector-list-comma-space-before': 'never-single-line',
55+
'@stylistic/unicode-bom': 'never',
56+
'@stylistic/value-list-comma-newline-after': 'never-multi-line',
57+
'@stylistic/value-list-comma-newline-before': 'never-multi-line',
58+
'@stylistic/value-list-comma-space-after': 'always'
5959
},
6060
'overrides': [
6161
{

0 commit comments

Comments
 (0)