Skip to content
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

'URLSearchParams' is not defined #5668

Closed
kongakong opened this issue Mar 25, 2016 · 4 comments · Fixed by #5669
Closed

'URLSearchParams' is not defined #5668

kongakong opened this issue Mar 25, 2016 · 4 comments · Fixed by #5669
Assignees
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion core Relates to ESLint's core APIs and features

Comments

@kongakong
Copy link

What version of ESLint are you using?

2.4

What parser (default, Babel-ESLint, etc.) are you using?

babel-eslint ^6.0.0-beta.6

Please show your full configuration:

eslint-config-airbnb 6.1.0

What did you do? Please include the actual source code causing the issue.

const searchParams = new URLSearchParams();

What did you expect to happen?

URLSearchParams should not be flagged as undefined because it is part of WebAPIs

What actually happened? Please include the actual, raw output from ESLint.

13:30 error 'URLSearchParams' is not defined no-undef

@eslintbot eslintbot added the triage An ESLint team member will look at this issue soon label Mar 25, 2016
@ilyavolodin
Copy link
Member

sindresorhus/globals#83
Once next version of globals will be release this issue will be fixed automatically.

@mysticatea
Copy link
Member

We have globals@^8.18.0 in our package.json, and the latest globals is v9.2.0.
So we have to upgrade the dependency.

@mysticatea mysticatea reopened this Mar 25, 2016
@mysticatea mysticatea added core Relates to ESLint's core APIs and features accepted There is consensus among the team that this change meets the criteria for inclusion and removed triage An ESLint team member will look at this issue soon labels Mar 25, 2016
@mysticatea mysticatea self-assigned this Mar 25, 2016
mysticatea added a commit that referenced this issue Mar 25, 2016
ilyavolodin added a commit that referenced this issue Mar 25, 2016
@tysonnero
Copy link

I'm seeing this same issue using the following versions:
eslint: 3.4.0
babel-eslint: 6.1.2

Just wondering if I'm possibly doing something wrong.

@ilyavolodin
Copy link
Member

@tysonnero Try reinstalling eslint. It's possible you are pulling older version of globals

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion core Relates to ESLint's core APIs and features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants