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

Support configuration file overrides in default configuration. #7629

Closed
AndersDJohnson opened this issue Nov 21, 2016 · 3 comments
Closed

Support configuration file overrides in default configuration. #7629

AndersDJohnson opened this issue Nov 21, 2016 · 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

@AndersDJohnson
Copy link

AndersDJohnson commented Nov 21, 2016

Relates to #7628.

What version are you using?
3.10.2
What did you do?
I have multiple ESLint configuration files, e.g. a default one for source, one for functional tests adding Protractor globals, one for unit tests adding Jasmine globals, etc.
What happened?
The Atom editor and its linter plugin (as well as other tools, I'm sure) only understands the default one, so it shows all kinds errors when I'm working on my test files (undefined globals, etc.)
What did you expect to happen?
I'd like a new feature allowing the default configuration file to specify different configuration file overrides to be used for some files, matched by glob patterns, e.g. in .eslintrc.js:

module.exports = {
  "configs": {
    ".eslintrc.karma.js": "tests/**/*.js",
    ".eslintrc.protractor.js": "e2e-tests/**/*.js"
  },
  "extends": "eslint:recommended",
  "rules": {
    // ...
  }
};
@eslintbot eslintbot added the triage An ESLint team member will look at this issue soon label Nov 21, 2016
@not-an-aardvark
Copy link
Member

Thanks for the request. However, I think this is a duplicate of #3611.

@AndersDJohnson
Copy link
Author

@not-an-aardvark I suppose you're right, that's similar enough. I'll close this one out. Thanks!

@AndersDJohnson
Copy link
Author

Looks like this was introduced in #8081.

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

3 participants