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

Use single quotes for quoted text in comments instead of backticks #36

Merged

Conversation

t-lock
Copy link
Contributor

@t-lock t-lock commented May 24, 2019

CSS-in-JS is becoming wildly popular for styling client-side web applications.

A number of the tools/frameworks for styling in Javascript utilize template literals to allow for real css syntax, as opposed to styles written in javascript objects. Styled Components is probably the most popular example.

Since template literals use backticks, parsing css which contain backticks within comments is problematic, causing linting/parsing errors.

In order to copy-paste modern-normalize.css directly into one of these frameworks, we can simply use single quotes instead of backticks inside of the comments.

If it makes no difference otherwise (and maybe it does, please correct me if so), then why not? ;)

@t-lock t-lock changed the title use single quotes for quoted text in comments instead of backticks Use single quotes for quoted text in comments instead of backticks May 24, 2019
@sindresorhus sindresorhus merged commit 95a5d35 into sindresorhus:master Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants