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

Can't Disable Env #4463

Closed
aldendaniels opened this issue Nov 17, 2015 · 3 comments
Closed

Can't Disable Env #4463

aldendaniels opened this issue Nov 17, 2015 · 3 comments
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion triage An ESLint team member will look at this issue soon

Comments

@aldendaniels
Copy link

First, thanks for all the hard work on the ESLint project. ESLint is a fantastic gift to the JS community and makes coding more fun and more efficient every day.

I'm having trouble "turning off" an environment in my .eslintrc file.

My directory structure looks like this:

app/
  __TEST__/
    .eslintrc
  .eslintrc
  app.js

In my __TEST__ directory I'd like to turn off the "browser" env so that browser globals are flagged, since my mocha tests are run on node.

Currently, __TEST__/.eslintrc is configured like this:

{
  "env": {
    "mocha": true,
    "browser": false,
    "node": true
  }
}

Unfortunately, the "browser": false does not disable the top-level setting.

Your help is appreciated!

NOTE: Glob based configuration (#3611) will remove the need for this approach.

@eslintbot eslintbot added the triage An ESLint team member will look at this issue soon label Nov 17, 2015
@eslintbot
Copy link

Thanks for the issue! If you're reporting a bug, please be sure to include:

  1. The version of ESLint you are using (run eslint -v)
  2. What you did (the source code and ESLint configuration)
  3. The actual ESLint output complete with numbers
  4. What you expected to happen instead

Requesting a new rule? Please see Proposing a New Rule for instructions.

@ilyavolodin
Copy link
Member

Duplicate of #4379 This is a known issue/feature.

@aldendaniels
Copy link
Author

Thanks! Missed that.

On Tue, Nov 17, 2015 at 1:06 PM, Ilya Volodin notifications@github.com
wrote:

Duplicate of #4379 #4379 This is
a known issue/feature.


Reply to this email directly or view it on GitHub
#4463 (comment).

@nzakas nzakas closed this as completed Nov 17, 2015
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 7, 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 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion triage An ESLint team member will look at this issue soon
Projects
None yet
Development

No branches or pull requests

4 participants