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

[eslint] Allow use of double quotes where sensible #357

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

fredden
Copy link
Member

@fredden fredden commented Jan 11, 2022

This is a small part of #347 as suggested in #347 (comment).

https://eslint.org/docs/rules/quotes
This is a minor change to the existing rule to allow the use of double quotes where it's sensible to do so. For example, the current rule configuration means that "It's sensible to use double quotes here." must instead be written as 'It\'s sensible to use double quotes here.'. As JavaScript does not interpolate strings the same way as PHP (where ' and " mean different things), there is no harm in using the most sensible quote type. We're preserving the default preference of using single quotes by default / where possible.

@m2-community-project m2-community-project bot added this to Ready for Review in Pull Request Progress Jan 11, 2022
@fredden fredden changed the title Allow use of double quotes where sensible [eslint] Allow use of double quotes where sensible Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Pull Request Progress
  
Ready for Review
Development

Successfully merging this pull request may close these issues.

None yet

2 participants