no-useless-escapes has false positives for periods and meta sequences.
See original GitHub issueTell us about your environment
- ESLint Version: 4.10.0
- Node Version: 9.0.0
- npm Version: 5.5.1
What parser (default, Babel-ESLint, etc.) are you using? default Please show your full configuration:
Configuration
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [2, "tab"],
"linebreak-style": [2, "unix"],
"quotes": [2, "double"],
"semi": [2, "always"]
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2017
}
}
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
this.regexes = {
suffix: new RegExp("^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?(" + this.suffixes.join("|") + ")?$", "i"),
suffix_strict: new RegExp("^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?(" + this.suffixes.join("|") + ")$", "i")
};
eslint src/**
What did you expect to happen? It wouldn’t complain about correct regex. What actually happened? Please include the actual, raw output from ESLint. It claimed the escapes were useless when they were needed.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
The uterine blush. A potential false-positive in Meckel's ...
It is a manifestation of a normal physiologic phenomenon, and must be recognized to prevent false-positive Meckel's scan interpretations.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
here’s the actual eslint output lmao, mixed up the two issues I opened.
and yeah that was the problem, thanks for clarifying.