Configuration for rule 'no-useless-escape' is invalid
See original GitHub issueI’ve installed airbnb-base in a project the exact same way I’ve installed it in a few other projects:
yarn add eslint-config-airbnb-base eslint eslint-plugin-import --dev
And I’m using the same .eslintrc config file that I’m using in a few other projects: here
But for some reason on this one project, after installing airbnb-base - I now get this error:
/Users/leftynaut/project/node_modules/eslint-config-airbnb-base/rules/best-practices.js: Configuration for rule "no-useless-escape" is invalid: Cannot read property 'Symbol(Symbol.iterator)' of undefined Referenced from: airbnb-base Referenced from: /Users/leftynaut/project/.eslintrc
I had a simple custom rule list beforehand that was working normally in this project. Any idea why this could have happened?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
vscode not picking up .eslintrc settings - Stack Overflow
To fix it you just turn that rule explicitly off by adding the following rule to your eslint.rc file: { "rules": { "no-useless-escape": ......
Read more >no-useless-escape - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >regexp/no-useless-escape
This rule reports unnecessary escape characters in RegExp. You may be able to find another mistake by finding unnecessary escapes.
Read more >Disallow this keywords outside of classes or class-like objects ...
Examples of incorrect code for this rule in strict mode: /*eslint no-invalid-this: "error"*/ /*eslint-env es6*/ "use strict"; this.a = 0; baz(() => this); ......
Read more >eslint-config-rasenplanscher - npm
This configuration determines whether your project uses the eslint plugins it has rules for and only activates those rules for the available ...
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
Doh, a dependency I added recently added an invalid shim. That bubbled up as the above error. Sorry about that, i’ve got it working now.
(btw your ignorePattern for max-len isn’t needed, since all imports are from strings, and ignoreStrings is on)