Skip to content

Commit 8cd3c47

Browse files
authored
Require stylelint v14 for stylelint config and scripts (#38091)
* Update stylelint config to require v14 * Bump stylelint dependency for scripts * Update package-lock.json * Ignore SCSS test files for stylelint check * Fix minor SCSS lint issues * Use the correct preset for linting SCSS files * Disable stylelint rules until these are fixed * Remove duplicate PostCSS dependencies * Update tests for updated rules * Add PR to changelog
1 parent 5dfd0e6 commit 8cd3c47

File tree

13 files changed

+425
-938
lines changed

13 files changed

+425
-938
lines changed

.stylelintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
packages/stylelint-config/test

.stylelintrc.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@wordpress/stylelint-config",
2+
"extends": "@wordpress/stylelint-config/scss",
33
"rules": {
44
"at-rule-empty-line-before": null,
55
"at-rule-no-unknown": null,
@@ -9,6 +9,17 @@
99
"no-descending-specificity": null,
1010
"rule-empty-line-before": null,
1111
"selector-class-pattern": null,
12-
"value-keyword-case": null
12+
"value-keyword-case": null,
13+
"scss/operator-no-unspaced": null,
14+
"scss/selector-no-redundant-nesting-selector": null,
15+
"scss/at-import-partial-extension": null,
16+
"scss/no-global-function-names": null,
17+
"scss/comment-no-empty": null,
18+
"scss/at-extend-no-missing-placeholder": null,
19+
"scss/operator-no-newline-after": null,
20+
"scss/at-if-closing-brace-newline-after": null,
21+
"scss/at-else-empty-line-before": null,
22+
"scss/at-if-closing-brace-space-after": null,
23+
"no-invalid-position-at-import-rule": null
1324
}
1425
}

docs/contributors/folder-structure.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The following snippet explains how the Gutenberg repository is structured omitti
1515
├── .jshintignore
1616
├── .eslintignore
1717
├── .prettierrc.js
18+
├── .stylelintignore
1819
├── .stylelintrc.json
1920
├── .markdownlintignore
2021
├── .npmpackagejsonlintrc.json

0 commit comments

Comments
 (0)