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

The default value of CLIEngine's `options.cwd` is decided when ESLint is loaded. #5694

Closed
mysticatea opened this Issue Mar 27, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@mysticatea
Member

mysticatea commented Mar 27, 2016

From mysticatea/eslint-plugin-node#28

I think the default value of options.cwd should be decided in runtime.


What version of ESLint are you using?

  • v2.0.0 - v2.5.1.

What parser (default, Babel-ESLint, etc.) are you using?

  • default.

Please show your full configuration:

What did you do? Please include the actual source code causing the issue.

  • I linted cpx.js with using Atom's linter-eslint.

What did you expect to happen?

  • No errors.

What actually happened? Please include the actual, raw output from ESLint.

  • I got false positive.
    image

@mysticatea mysticatea self-assigned this Mar 27, 2016

@mysticatea mysticatea changed the title from CLIEngine's the default value of `options.cwd` decides on loaded. to The default value of CLIEngine's `options.cwd` is decided when ESLint is loaded. Mar 27, 2016

mysticatea added a commit that referenced this issue Mar 27, 2016

ilyavolodin added a commit that referenced this issue Mar 27, 2016

Merge pull request #5697 from eslint/core/fix-default-of-cliengine-cwd
Fix: make the default of `options.cwd` in runtime (fixes #5694)

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.