We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If the code that is passed to linter.verify contains \\n in a string, and no-useless-escape is enabled, the function hangs and cpu usage hits 100%.
linter.verify
\\n
no-useless-escape
Passing the exact same code through eslint (7.32.0) does not.
The following code can be used to reproduce:
const Linter = require('eslint4b'); const linter = new Linter(); var defaultConfig = { "env": { "es2021": true }, "parserOptions": { "ecmaVersion": 12 }, "rules": { "no-useless-escape": "error", } } linter.verify('const a = "\\n"', defaultConfig)
The text was updated successfully, but these errors were encountered:
I have the save issue. And I found this only happens when parserOptions.ecmaVersion >= 11
Sorry, something went wrong.
Same issue here too. Using it in a codemirror project. Any backslash within a string causes the linter to hang indefinitely.
No branches or pull requests
If the code that is passed to
linter.verify
contains\\n
in a string, andno-useless-escape
is enabled, the function hangs and cpu usage hits 100%.Passing the exact same code through eslint (7.32.0) does not.
The following code can be used to reproduce:
The text was updated successfully, but these errors were encountered: