-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Labels
[Type] Code Quality
Issues or PRs that relate to code quality
Comments
4 tasks
tofumatt
added a commit
that referenced
this issue
Jun 26, 2018
tofumatt
added a commit
that referenced
this issue
Jun 26, 2018
This was referenced Jun 26, 2018
tofumatt
added a commit
that referenced
this issue
Jul 24, 2018
tofumatt
added a commit
that referenced
this issue
Jul 24, 2018
tofumatt
added a commit
that referenced
this issue
Jul 25, 2018
* chore: Allow double quotes when strings contain single quotes Fixes #7366
This was referenced Dec 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: