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

Enable avoidEscape in eslint string config so we can avoid escaping single quotes #7366

Closed
tofumatt opened this issue Jun 19, 2018 · 0 comments · Fixed by #7555
Closed

Enable avoidEscape in eslint string config so we can avoid escaping single quotes #7366

tofumatt opened this issue Jun 19, 2018 · 0 comments · Fixed by #7555
Assignees
Labels
[Type] Code Quality Issues or PRs that relate to code quality

Comments

@tofumatt
Copy link
Member

tofumatt commented Jun 19, 2018

This is just an eslint/code quality issue. I've noticed we force single quotes at all times, even when the string contains a single quote. This means we write 'It\'s my birthday!' rather than "It's my birthday!". The latter is way more readable, fewer things to type, etc.

It's totally nicer and eslint supports this setting (avoidEscape ), so we should use it.

@tofumatt tofumatt added the [Type] Code Quality Issues or PRs that relate to code quality label Jun 19, 2018
@tofumatt tofumatt self-assigned this Jun 26, 2018
tofumatt added a commit that referenced this issue Jul 25, 2018
* chore: Allow double quotes when strings contain single quotes

Fixes #7366
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant