Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

fix: Updates Eslint process to run with project directory #73

Merged
merged 1 commit into from
Jan 3, 2022

Conversation

joserosa33
Copy link
Contributor

Description

Currently, using garment to lint a project, the Typescript parser will parse the entire repository.
This happens because the Typescript parser will use the process.cwd() to know where to start the parsing.
Updating the process's current working directory to the project.fullPath will parse only the needed files.

How Has This Been Tested?

Tested on a private monorepo.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have added tests to cover my changes
  • I have made corresponding changes to the documentation

Disclaimer

By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement

@luisvieiragmr luisvieiragmr merged commit ad55434 into Farfetch:master Jan 3, 2022
@joserosa33 joserosa33 deleted the fix/eslint-update-cwd branch January 13, 2022 19:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants