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 inline comment to specify configuration file. #7628

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

Support inline comment to specify configuration file. #7628

AndersDJohnson opened this issue Nov 21, 2016 · 2 comments
Labels
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 enhancement This change enhances an existing feature of ESLint evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion

Comments

@AndersDJohnson
Copy link

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 an inline comment to specify the location of the configuration file to use to lint the current file, e.g.:

/* eslint-config "../.eslint.karma.js" */

describe('my tests', function () {
  // ...
});
@eslintbot eslintbot added the triage An ESLint team member will look at this issue soon label Nov 21, 2016
@AndersDJohnson
Copy link
Author

#7629 is arguably more useful.

@not-an-aardvark not-an-aardvark added core Relates to ESLint's core APIs and features enhancement This change enhances an existing feature of ESLint evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion and removed triage An ESLint team member will look at this issue soon labels Nov 21, 2016
@alberto
Copy link
Member

alberto commented Jan 29, 2017

Closing as duplicate

@alberto alberto closed this as completed Jan 29, 2017
@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 core Relates to ESLint's core APIs and features enhancement This change enhances an existing feature of ESLint evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion
Projects
None yet
Development

No branches or pull requests

4 participants