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

feat: fmt and lint respect .gitignore file #26897

Merged
merged 5 commits into from
Nov 18, 2024

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Nov 16, 2024

Closes #26573

@bartlomieju bartlomieju requested a review from dsherret November 17, 2024 12:32
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

That was easy. LGTM

@bartlomieju bartlomieju merged commit 106d47a into denoland:main Nov 18, 2024
17 checks passed
@bartlomieju bartlomieju deleted the fmt_lint_use_gitignore branch November 18, 2024 22:54
nathanwhit pushed a commit to denoland/fresh that referenced this pull request Dec 4, 2024
Resolves #2771

Specifically the `init` test fails:
```
deno test -A ./init
```
Output:
```
error: No target files found.
----- output end -----
init - fmt, lint, and type check project ... FAILED (157ms)
init with tailwind - fmt, lint, and type check project ...
------- output -------
Task check deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx
error: No target files found.
----- output end -----
init with tailwind - fmt, lint, and type check project ... FAILED (136ms)
```

Seems to be a gitignore issue, and _probably_ relates to the new
features that ["lint an fmt respect
gitignore"](denoland/deno#26897):
- the gitignore file in the fresh project has `tmp-*`
- the tmp directory created by the init test matches that pattern:
`tmp-${hash}`
- changing the tmp directory to `tmp_${hash}` resolves the issue 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deno fmt and deno lint should ignore hidden directories by default
2 participants