-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the stylelint-config-wordpress\scss
stylelint config
#17790
Conversation
Let's do it 😄 |
SCSS is not my strong suit, so I'm not sure what's required to fix these issues: packages/block-library/src/classic/editor.scss
117:3 ✖ Unnecessary nesting selector (&) scss/selector-no-redundant-nesting-selector Maybe this is something you could look at and help with please @jasmussen ? |
Thanks for the ping. If I'm not mistaken, this is the SCSS in question:
I totally see why it was written this way, but if it makes the linter unhappy, I believe it can be written this way too:
|
Related: #22777 |
@gziolo What's the best way to update this branch? |
Can we get a status update on where this PR is at? |
I do not think this PR needs design feedback. It seems more like that it needs technical feedback. |
It should use |
Description
Via @gziolo in #17060 (comment)
The current stylelint config uses CSS rather than the SCSS config included in
stylelint-config-wordpress
The
stylelint-config-wordpress\scss
config extendsstylelint-config-wordpress
so the changes will allow for improved linting of SCSS files.How has this been tested?
npm install
npm run lint-css
Screenshots
Types of changes
Build tool change
Checklist:
Results
The following are the results of running
npm run lint-css
and the SCSS files should be updated also as part of this PR.