You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Prettier for formatting. Prettier enforces a consistent quote style. However, Prettier does not enforce using string literals over template strings. To enforce this, I’m using the @stylistic/quotes rule. The downside is that:
The configuration of @stylistic/quotes needs to match the Prettier configuration.
Incorrectly quoted strings are reported by both @stylistic/quotes and eslint-plugin-prettier.
Suggested solution
Add an option ignoreStringLiterals. When this is used, only template literals are checked.
Clear and concise description of the problem
I use Prettier for formatting. Prettier enforces a consistent quote style. However, Prettier does not enforce using string literals over template strings. To enforce this, I’m using the
@stylistic/quotes
rule. The downside is that:@stylistic/quotes
needs to match the Prettier configuration.@stylistic/quotes
andeslint-plugin-prettier
.Suggested solution
Add an option
ignoreStringLiterals
. When this is used, only template literals are checked.Alternative
Don’t do anything 🤷
Additional context
No response
Validations
Contributes
The text was updated successfully, but these errors were encountered: