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

New: pass cwd from cli engine #12389

Merged
merged 2 commits into from Oct 16, 2019

Conversation

fa93hws
Copy link
Contributor

@fa93hws fa93hws commented Oct 8, 2019

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[x] Add something to the core
[ ] Other, please explain:

What changes did you make? (Give an overview)
Pass the cwd from the cli engine
#11218
RFC link: eslint/rfcs#35

Is there anything you'd like reviewers to focus on?
Linter.js

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Oct 8, 2019
lib/linter/linter.js Outdated Show resolved Hide resolved
Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this!

I think the new Linter config object should be optional so that it’s not a breaking change (and we don’t have to add that empty object everywhere).

Do you mind updating the documentation as well?

lib/linter/linter.js Outdated Show resolved Hide resolved
lib/linter/linter.js Outdated Show resolved Hide resolved
lib/linter/linter.js Outdated Show resolved Hide resolved
Copy link
Member

@mysticatea mysticatea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!
I have some suggestions. Would you address those?

lib/linter/linter.js Outdated Show resolved Hide resolved
lib/linter/linter.js Outdated Show resolved Hide resolved
lib/linter/linter.js Outdated Show resolved Hide resolved
Copy link
Member

@mysticatea mysticatea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the quick update!

Almost LGTM, but I have a few suggestions.

docs/developer-guide/nodejs-api.md Outdated Show resolved Hide resolved
lib/linter/linter.js Outdated Show resolved Hide resolved
lib/linter/linter.js Outdated Show resolved Hide resolved
@kaicataldo kaicataldo added accepted There is consensus among the team that this change meets the criteria for inclusion core Relates to ESLint's core APIs and features enhancement This change enhances an existing feature of ESLint and removed triage An ESLint team member will look at this issue soon labels Oct 10, 2019
Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions around documentation. Otherwise, this LGTM. Thanks for working on this!

docs/developer-guide/nodejs-api.md Outdated Show resolved Hide resolved
docs/developer-guide/nodejs-api.md Outdated Show resolved Hide resolved
docs/developer-guide/nodejs-api.md Outdated Show resolved Hide resolved
docs/developer-guide/working-with-rules.md Outdated Show resolved Hide resolved
tests/lib/linter/linter.js Outdated Show resolved Hide resolved
docs/developer-guide/nodejs-api.md Outdated Show resolved Hide resolved
@kaicataldo
Copy link
Member

kaicataldo commented Oct 10, 2019

Ah, also forget to mention: can you change the commit message from Chore: to Enhancement: New:? Since this adds a new API, it should be a semver-minor change.

Edited: @mysticatea Whoops, yes! Thank you for catching that.

@mysticatea
Copy link
Member

@kaicataldo I guess you meant Update: or New:.

@kaicataldo kaicataldo added feature This change adds a new feature to ESLint and removed enhancement This change enhances an existing feature of ESLint labels Oct 10, 2019
@fa93hws fa93hws changed the title Chore: pass cwd from cli engine New: pass cwd from cli engine Oct 11, 2019
Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Member

@mysticatea mysticatea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@kaicataldo kaicataldo merged commit 874fe16 into eslint:master Oct 16, 2019
@kaicataldo
Copy link
Member

Thanks for contributing!

@fa93hws fa93hws deleted the pass-cwd-from-cli-engine branch October 16, 2019 00:07
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Apr 15, 2020
@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 Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion 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 feature This change adds a new feature to ESLint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants