Skip to content
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

Disable the media-query-no-invalid rule since it conflicts with JavaScript. #25

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

dbatiste
Copy link
Contributor

@dbatiste dbatiste commented Jul 10, 2023

This PR disables the media-query-no-invalid that was added in stylelint-config-recommended@13.

The rule causes the following (reasonable example from copycat) scenario to fail:

@media (max-width: ${MEDIA_BREAKPOINT}px) {
	.d2l-heading-1 {
		margin: 1.2rem 0;
	}
}

@dbatiste dbatiste requested a review from a team as a code owner July 10, 2023 19:05
Copy link
Member

@dlockhart dlockhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to disable it. This is where if we had alternative rules for Lit vs. vanilla CSS it might make sense to have some deviation, but not worth introducing that here.

@dbatiste dbatiste merged commit 85771af into main Jul 10, 2023
@dbatiste dbatiste deleted the dbatiste/disable-media-query-no-invalid branch July 10, 2023 20:09
@ghost
Copy link

ghost commented Jul 10, 2023

🎉 This PR is included in version 0.8.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants