Skip to content

Conversation

mdjermanovic
Copy link
Member

Prerequisites checklist

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

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

Fixes #17964

What changes did you make? (Give an overview)

Added a note that ignore pattern like build/** also ignores directory build/. Also added few more examples.

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

@mdjermanovic mdjermanovic added documentation Relates to ESLint's documentation core Relates to ESLint's core APIs and features labels Jan 22, 2024
@mdjermanovic mdjermanovic requested a review from a team as a code owner January 22, 2024 15:05
Copy link

netlify bot commented Jan 22, 2024

Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit 78bf40c
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/65b149d0e963ee00087f76ff
😎 Deploy Preview https://deploy-preview-18020--docs-eslint.netlify.app/use/configure/ignore
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

];
```

Patterns that end with `/` can match only directories. Patterns that don't end with `/` can match both files and directories. For example, this config ignores all files in and under `build` directory except for files named `test.js`:
Copy link
Member

Choose a reason for hiding this comment

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

This example is really difficult to follow. I don't think this paragraph properly introduces what is happening in the config below. Can you make this more explicit?

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've now pushed a new version with more details about the example.

@mdjermanovic mdjermanovic added the accepted There is consensus among the team that this change meets the criteria for inclusion label Jan 24, 2024
Copy link
Member

@nzakas nzakas 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!

@nzakas nzakas merged commit 33d1ab0 into main Jan 24, 2024
@nzakas nzakas deleted the issue17964 branch January 24, 2024 17:50
@fisker
Copy link
Contributor

fisker commented Jan 26, 2024

@eslint-github-bot eslint-github-bot bot locked and limited conversation to collaborators Jul 23, 2024
@eslint-github-bot eslint-github-bot bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Jul 23, 2024
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 documentation Relates to ESLint's documentation

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Bug: Can't unignore file in flat config

3 participants