scope.resolve is not a function when running eslint
See original GitHub issueWhen I run eslint
from the command line I get the following error:
scope.resolve is not a function
at isIdentifierNumberConstArgument (/home/ali/dev/planty/node_modules/eslint-plugin-cypress/lib/rules/no-unnecessary-waiting.js:59:36)
...
Looks like it’s coming from the no-unnecessary-waiting.js rule. Is this plugin not compatible with eslint 7.8.1 currently?
Lib versions
eslint
: 7.8.1eslint-plugin-cypress
: 2.11.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to solve Eslint - Module.createRequire is not a function ...
I'm trying to use ESLint but I get this error: ESLint: Initialization error (ESLint). Module.createRequire is not a function. versions:.
Read more >ScopeManager - 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 >Working with Rules - ESLint - Pluggable JavaScript Linter
When linting text, it returns the value passed to —stdin-filename or <text> if not specified. getScope() - returns the scope of the currently-traversed...
Read more >Rules - 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 >global-require - ESLint - Pluggable JavaScript Linter
In Node.js, module dependencies are included using the require() function, ... es6*/ // calling require() inside of a function is not allowed function...
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
🎉 This issue has been resolved in version 2.11.2 🎉
The release is available on:
Your semantic-release bot 📦🚀
https://eslint.org/docs/developer-guide/scope-manager-interface#deprecated-members-2 scope.resolve is apparently deprecated and it’s not a problem with typescript-eslint.