-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
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
Decorator: Unexpected use of 'name'. no-restricted-globals #14020
Comments
Thanks for the issue.
|
@Edge00 can you try with the latest version of If there's still a problem, then this would be a bug in |
Seeing this with ESLint 7.18.0 and |
I can reproduce this with the latest It looks like the problem has been already fixed by typescript-eslint/typescript-eslint#2943 as it works well with 4.14.1-alpha.2. The solution at the moment would be to use 4.13.0 or 4.14.1-alpha.2 until the next version (on Monday). https://github.com/typescript-eslint/typescript-eslint#package-versions |
@anikethsaha @mdjermanovic Thanks for helping. since this is a bug with |
env info
parser
@typescript-eslint/parser
Configuration
Code
command
result
What did you expect to happen?
This is not declaring a variable. Sholdn't trigger this rule
What actually happened? Please include the actual, raw output from ESLint.
/Users/qiongen/Desktop/red/fe-platform/src/app/controller/ci.ts
96:7 error Unexpected use of 'name' no-restricted-globals
✖ 1 problem (1 error, 0 warnings)
Are you willing to submit a pull request to fix this bug?
The text was updated successfully, but these errors were encountered: