Skip to content

Commit 3f6a0e2

Browse files
committed
Introduce @stylistic/stylelint-plugin to watch over stylistic rules removed in Stylelint 16
1 parent 4bad6b2 commit 3f6a0e2

File tree

4 files changed

+63
-2
lines changed

4 files changed

+63
-2
lines changed

package-lock.json

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"@babel/preset-env": "^7.24.7",
6767
"@babel/preset-react": "^7.24.7",
6868
"@babel/register": "^7.24.6",
69+
"@stylistic/stylelint-config": "^1.0.1",
6970
"@svgr/webpack": "^8.1.0",
7071
"@testing-library/jest-dom": "^6.4.6",
7172
"@testing-library/react": "^16.0.0",

src/components/Grid/_settings.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ $grid-responsive-properties: [
88
align-items,
99
justify-content,
1010
justify-items,
11-
]; // stylelint-disable-line indentation -- Broken rule?
11+
]; // stylelint-disable-line @stylistic/indentation -- Broken rule?
1212

1313
$grid-span-responsive-properties: [
1414
column-span,
1515
row-span,
16-
]; // stylelint-disable-line indentation -- Broken rule?
16+
]; // stylelint-disable-line @stylistic/indentation -- Broken rule?
1717

1818
$initial-fallback-value: initial;

stylelint.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ module.exports = {
44
'@visionappscz/stylelint-config/order',
55
'@visionappscz/stylelint-config/scss',
66
'@visionappscz/stylelint-config/cssModules',
7+
'@stylistic/stylelint-config',
78
],
89
rules: {
10+
// Allow @else and @elseif to be on the same line as the closing brace of the @if block.
11+
'@stylistic/block-closing-brace-newline-after': 'always-single-line',
12+
13+
// Use 4 spaces for indentation.
14+
'@stylistic/indentation': 4,
15+
916
// Check that custom property name starts with `rui` prefix and follows either SUIT CSS convention
1017
// (for components theming) or kebab-case syntax (for global design tokens and local properties).
1118
//

0 commit comments

Comments
 (0)