-
Notifications
You must be signed in to change notification settings - Fork 5
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
Upgrade stylelint from v13 to v16 #741
Conversation
…a specific pattern for our classes in kebab-case by default, yet we use a variety of mixed at times depended on the needs of targeting external sources fix: add "no-invalid-double-slash-comments" to allow `//` within our `scss` files due to the comments getting stripped out on processing
``` resources/scss/components/_flag.scss 42:17 ✖ Unexpected unknown property "//" property-no-unknown ```
``` resources/scss/components/_global-buttons.scss 54:62 ✖ Unexpected unknown function "theme" function-no-unknown 72:62 ✖ Unexpected unknown function "theme" function-no-unknown ```
``` resources/scss/components/_menu-top.scss 28:12 ✖ Unexpected invalid media query "(max-width: theme('screens.mt'))" ```
@chrispelzer Can we add automatic fixing to the regular make command and a second 'dry' command to allow for a preview of changes like phplint? Perhaps:
|
@chrispelzer It looks like some of the CSS comments in this PR have moved from the After updating the The errors are reported:
Trying the automatic
Is there a specific way to denote which rules to automatically fix? |
If you reverse one of the changes at the commit fix: various stylelint fixes based on and run it, you'll see it change.
As for the CSS comments, it depends on if the comment is within a property {} or if it's within the outside. |
👍🏻 |
@chrispelzer
|
Fixes #634
Stylelint now includes a
--fix
option similar to phplinting so it is able to correct the errors without much issuestylelint ./resources/scss/**/*.scss --fix