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

style(lint): remove eslint quotes rules so prettier wins #41

Merged

Conversation

mikehardy
Copy link
Collaborator

prettier allows double-quotes on strings if you have a single-quote in
the string that you would need to escape. It's subtle, but prettier

eslint was trying to overrule that, so there was a linting battle

this lets prettier win

may not be generally applicable (it only happened to me when doing translations on authentication errors - lots of strings) but it simplifies the config so it seems reasonable to have it in the base layer of the templates

@mikehardy mikehardy changed the title style(lint): remote eslint quotes rules so prettier wins style(lint): remove eslint quotes rules so prettier wins Dec 5, 2021
prettier allows double-quotes on strings if you have a single-quote *in*
the string that you would need to escape. It's subtle, but prettier

eslint was trying to overrule that, so there was a linting battle

this lets prettier win
@mikehardy mikehardy force-pushed the @mikehardy/quotes-lint branch from 034f6d6 to 5d6be67 Compare December 6, 2021 02:14
@LunatiqueCoder LunatiqueCoder merged commit b390fec into LunatiqueCoder:master Dec 6, 2021
@mikehardy mikehardy deleted the @mikehardy/quotes-lint branch December 9, 2021 15:44
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.

2 participants