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

Update ignore to v5 #6975

Closed
wants to merge 7 commits into from
Closed

Update ignore to v5 #6975

wants to merge 7 commits into from

Conversation

fisker
Copy link
Member

@fisker fisker commented Nov 16, 2019

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory)
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/pr-XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

src/cli/util.js Outdated Show resolved Hide resolved
src/cli/util.js Outdated Show resolved Hide resolved
src/cli/util.js Outdated Show resolved Hide resolved
src/common/get-file-info.js Outdated Show resolved Hide resolved
src/cli/util.js Outdated
try {
fileIgnored = ignorer.ignores(path.relative(process.cwd(), filename));
} catch (_) {
// Invalid path
Copy link
Member

Choose a reason for hiding this comment

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

Would it be better to do this update in next instead and show this error to the user? I’m not sure what an “invalid path” is, but it sounds useful to get to know that some of my patterns are wrong?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know. I'm not changing current behave

Copy link
Member

Choose a reason for hiding this comment

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

@evilebottnawi Do you have experience from ESLint or stylelint?

src/cli/util.js Outdated Show resolved Hide resolved
Co-Authored-By: Simon Lydell <simon.lydell@gmail.com>
try {
fileIgnored = ignorer.ignores(path.relative(process.cwd(), filename));
} catch (_) {
// Invalid path. TODO: Should we show this error to the user, rather than swallowing it?
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should add note for next major release about that?

@alexander-akait
Copy link
Member

/cc @fisker what is status?

@fisker
Copy link
Member Author

fisker commented Jan 23, 2020

Not sure what I can do

@fisker
Copy link
Member Author

fisker commented Feb 26, 2020

After reading sindresorhus/globby#120 , sindresorhus/globby#112 and sindresorhus/globby#104 I think I did something wrong

@fisker fisker closed this Feb 26, 2020
@fisker fisker mentioned this pull request Jun 12, 2020
4 tasks
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 26, 2021
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.

None yet

4 participants