question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuration for rule 'no-useless-escape' is invalid

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
milo-commented, Mar 27, 2017

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.

1reaction
ljharbcommented, Mar 23, 2017

(btw your ignorePattern for max-len isn’t needed, since all imports are from strings, and ignoreStrings is on)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found