🐛 Bug: Use root-level slashes for root-level directories in .gitignore and .prettierignore #1693
Closed
3 tasks done
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: bug
Something isn't working :(
Bug Report Checklist
main
branch of the repository.Expected
For
.gitignore
and.prettierignore
(which uses.gitignore
syntax per https://prettier.io/docs/en/ignore.html#ignoring-files-prettierignore), some root-level directories should be ignored: e.g.lib/
. Nested directories that happen to match the name should not be ignored: e.g.src/lib/
.Actual
Right now, the files just include lines like
lib/
. Those matchlib/
,src/lib/
,src/other-nested-dir/lib/
, etc.Additional Info
Splitting out of #1670.
Note that
node_modules/
should be kept to matching all directories.💖
The text was updated successfully, but these errors were encountered: