Skip to content

Commit

Permalink
Scripts: Exclude BEM class from stylelint @wordpress/scripts (#37531)
Browse files Browse the repository at this point in the history
* Fix #35485 - exclude BEM class

* Update CHANGELOG.md

Co-authored-by: Greg Ziółkowski <grzegorz@gziolo.pl>
  • Loading branch information
khoipro and gziolo authored Apr 20, 2022
1 parent d509a92 commit ee7618d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
- Automatically copy `block.json` files located in the `src` folder and its subfolders to the output folder (`build` by default) ([#37612](https://github.com/WordPress/gutenberg/pull/37612)).
- Scan the `src` directory for `block.json` files to detect defined scripts to use them as entry points with the `start` and `build` commands. ([#37661](https://github.com/WordPress/gutenberg/pull/37661)).

### Enhancements

- Disable `selector-class-pattern` rule when linting styles until we have more flexible handling ([#37531](https://github.com/WordPress/gutenberg/pull/37531)).

### Bug Fixes

- Prevent the `CleanWebpackPlugin` plugin from deleting webpack assets during multi-configuration builds [#35980](https://github.com/WordPress/gutenberg/issues/35980).
Expand Down
5 changes: 4 additions & 1 deletion packages/scripts/config/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "@wordpress/stylelint-config/scss"
"extends": "@wordpress/stylelint-config/scss",
"rules": {
"selector-class-pattern": null
}
}

0 comments on commit ee7618d

Please sign in to comment.