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
Chore: enable quote avoidEscape option in eslint-config-eslint #10626
Conversation
still not working, but that seems a bug to me. (#10627) |
Hi @aladdin-add, thanks for the PR. Just out of curiosity, what problem are you trying to solve here? Is the current configuration actually causing a lot of problems (i.e., are there many strings in ESLint or another repository which suffer from lots of escape sequences)? |
the problem is the current config disallows a better code(at least in my view). a common usage is code tests: valid: [
"var s = \"hello\";",
] |
I'm seeing a large number of cases using escape, seems enabling the option could be easier to write and read. thoughts? e.g. eslint/tests/lib/rules/no-duplicate-imports.js Lines 23 to 47 in cb946af
|
Thanks @aladdin-add. I'm 👍 to this change if it makes our rule tests easier to read. |
@eslint/eslint-team Any thoughts on this? Seems reasonable to make some of our tests easier to write (IMO). |
thanks for the feedback, seems we have more than 4 👍 from the team members. labelled |
it can be more readable to use:
than
hopefully, the option can be enabled by default?