Skip to content

Update ignore to v5#6975

Closed
fisker wants to merge 7 commits intoprettier:masterfrom
fisker:update-ignore
Closed

Update ignore to v5#6975
fisker wants to merge 7 commits intoprettier:masterfrom
fisker:update-ignore

Conversation

@fisker
Copy link
Copy Markdown
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

Comment thread src/cli/util.js Outdated
Comment thread src/cli/util.js Outdated
Comment thread src/cli/util.js Outdated
Comment thread src/common/get-file-info.js Outdated
Comment thread src/cli/util.js Outdated
try {
fileIgnored = ignorer.ignores(path.relative(process.cwd(), filename));
} catch (_) {
// Invalid path
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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?

Comment thread src/cli/util.js Outdated
Co-Authored-By: Simon Lydell <[email protected]>
Comment thread src/cli/util.js
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
Copy Markdown
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
Copy Markdown
Member

/cc @fisker what is status?

@fisker
Copy link
Copy Markdown
Member Author

fisker commented Jan 23, 2020

Not sure what I can do

@fisker
Copy link
Copy Markdown
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.

4 participants