Skip to content

Commit

Permalink
Require stylelint v14 for stylelint config and scripts (#38091)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ocean90 committed Jan 20, 2022
1 parent 5dfd0e6 commit 8cd3c47
Show file tree
Hide file tree
Showing 13 changed files with 425 additions and 938 deletions.
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages/stylelint-config/test
15 changes: 13 additions & 2 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@wordpress/stylelint-config",
"extends": "@wordpress/stylelint-config/scss",
"rules": {
"at-rule-empty-line-before": null,
"at-rule-no-unknown": null,
Expand All @@ -9,6 +9,17 @@
"no-descending-specificity": null,
"rule-empty-line-before": null,
"selector-class-pattern": null,
"value-keyword-case": null
"value-keyword-case": null,
"scss/operator-no-unspaced": null,
"scss/selector-no-redundant-nesting-selector": null,
"scss/at-import-partial-extension": null,
"scss/no-global-function-names": null,
"scss/comment-no-empty": null,
"scss/at-extend-no-missing-placeholder": null,
"scss/operator-no-newline-after": null,
"scss/at-if-closing-brace-newline-after": null,
"scss/at-else-empty-line-before": null,
"scss/at-if-closing-brace-space-after": null,
"no-invalid-position-at-import-rule": null
}
}
1 change: 1 addition & 0 deletions docs/contributors/folder-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The following snippet explains how the Gutenberg repository is structured omitti
├── .jshintignore
├── .eslintignore
├── .prettierrc.js
├── .stylelintignore
├── .stylelintrc.json
├── .markdownlintignore
├── .npmpackagejsonlintrc.json
Expand Down
Loading

0 comments on commit 8cd3c47

Please sign in to comment.