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

Upgrade ignore to 5.x? #13294

Closed
kaelzhang opened this issue May 13, 2020 · 7 comments
Closed

Upgrade ignore to 5.x? #13294

kaelzhang opened this issue May 13, 2020 · 7 comments
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion auto closed The bot closed this issue enhancement This change enhances an existing feature of ESLint evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion upgrade This change is related to a dependency upgrade

Comments

@kaelzhang
Copy link

kaelzhang commented May 13, 2020

The version of ESLint you are using.

7.0.0

The problem you want to solve.

The latest eslint still uses ignore@^4.0.6, but the latest version of ignore@5.1.3 solves many known issues.

  • .gitignore(.eslintignore) rules should always check paths that are relative to some directory which is usually the base dir of .gitignore file or the root directory of a repo. ignore <= 5 actually DONT KNOWN whether a pathname should be ignored if it is an absolute path.
  • and also improves perf
  • fixes some windows issues.

For details, we could check releases

Are you willing to submit a pull request to implement this change?

I'd like to help.

I submit this issue in order to discuss the necessarity whether we should do an upgrade which might introduce quite a few changes.

@kaelzhang kaelzhang added core Relates to ESLint's core APIs and features enhancement This change enhances an existing feature of ESLint triage An ESLint team member will look at this issue soon labels May 13, 2020
@kaicataldo
Copy link
Member

Upgrading to latest to take advantage of the things you listed above sounds great. Looking at the migration docs, is it true that we could avoid it being a breaking change for our users by filtering out the invalid paths?

@kaicataldo kaicataldo added evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion upgrade This change is related to a dependency upgrade and removed core Relates to ESLint's core APIs and features triage An ESLint team member will look at this issue soon labels May 14, 2020
@mysticatea
Copy link
Member

Currently, we allow relative paths to the parent (../*), so I think we need breaking changes to upgrade.

@kaelzhang
Copy link
Author

Currently, we allow relative paths to the parent (../*), so I think we need breaking changes to upgrade.

@mysticatea Those relative paths to the parent (../*) is defined in .eslintignore file or command-line arguments

@kaelzhang
Copy link
Author

kaelzhang commented May 15, 2020

Upgrading to latest to take advantage of the things you listed above sounds great. Looking at the migration docs, is it true that we could avoid it being a breaking change for our users by filtering out the invalid paths?

@kaicataldo I guess it is possible to make a smooth upgrade.

@eslint-deprecated
Copy link

Unfortunately, it looks like there wasn't enough interest from the team
or community to implement this change. While we wish we'd be able to
accommodate everyone's requests, we do need to prioritize. We've found
that issues failing to reach accepted status after 21 days tend to
never be accepted, and as such, we close those issues.
This doesn't mean the idea isn't interesting or useful, just that it's
not something the team can commit to.

Thanks for contributing to ESLint and we appreciate your understanding.

@metasean
Copy link
Contributor

fwiw: The ignore package is now up to release v.5.1.5

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Dec 14, 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 Dec 14, 2020
@bmish
Copy link
Sponsor Member

bmish commented Aug 6, 2021

Reopening since should be able to upgrade this in a major release at some point: #14889

@bmish bmish reopened this Aug 6, 2021
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 auto closed The bot closed this issue enhancement This change enhances an existing feature of ESLint evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion upgrade This change is related to a dependency upgrade
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants