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

CLIEngine `cwd` option #4472

Closed
sindresorhus opened this Issue Nov 18, 2015 · 4 comments

Comments

Projects
None yet
4 participants
@sindresorhus
Copy link
Contributor

sindresorhus commented Nov 18, 2015

It would be useful to be able to set the cwd (current working directory) of where ESLint works from. My specific use-case is that I use ESLint in an Atom Editor plugin where process.cwd() === '/'.

@eslintbot

This comment has been minimized.

Copy link

eslintbot commented Nov 18, 2015

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.

@nzakas

This comment has been minimized.

Copy link
Member

nzakas commented Nov 18, 2015

Agree, this has been in the back of my mind for a while. Do you want to submit a pull request?

@sindresorhus

This comment has been minimized.

Copy link
Contributor Author

sindresorhus commented Nov 18, 2015

I don't have the time right now as I'm traveling, but I will eventually if no one else steps in.

@wmertens

This comment has been minimized.

Copy link

wmertens commented Nov 19, 2015

It's not even as simple as that, it should go in the same directory as the package.json file/node_modules dir, otherwise the module is not found strangely enough.

ilyavolodin added a commit that referenced this issue Dec 10, 2015

nzakas added a commit that referenced this issue Dec 13, 2015

Merge pull request #4657 from eslint/issue-4472
Update: Add cwd option for cli-engine (fixes #4472)

@eslint eslint bot locked and limited conversation to collaborators Feb 7, 2018

@eslint eslint bot added the archived due to age label Feb 7, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.