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

Custom Environments #2899

Closed
andrewdeandrade opened this issue Jul 1, 2015 · 4 comments
Closed

Custom Environments #2899

andrewdeandrade opened this issue Jul 1, 2015 · 4 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

@andrewdeandrade
Copy link
Contributor

Upon investigating the default options when calling eslint programmatically, it doesn't look like there is support for defining custom environments.

This would be a nice feature if you want to define your own environments optimized for different conditions, like /*eslint-env perf*/ or /*eslint-env readability*/, on a file per file basis.

@ilyavolodin ilyavolodin added the triage An ESLint team member will look at this issue soon label Jul 1, 2015
@ilyavolodin
Copy link
Member

We do not currently have support for custom environments at all. It has been discussed multiple time, and a few implementation were tested, but it always turns out to be harder then it looks.

@nzakas
Copy link
Member

nzakas commented Jul 2, 2015

In 1.0.0, environments will no longer toggle rules, so environments can only be used to define globals. I'm guessing what you want is handled better by shareable configs.

@gyandeeps
Copy link
Member

@malandrew did you get your question answered?

@nzakas
Copy link
Member

nzakas commented Jul 25, 2015

We aren't planning on doing custom environments, so closing.

@nzakas nzakas closed this as completed Jul 25, 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