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

deno lint --permit-no-files #28728

Open
felipecrs opened this issue Apr 3, 2025 · 0 comments · May be fixed by #28753
Open

deno lint --permit-no-files #28728

felipecrs opened this issue Apr 3, 2025 · 0 comments · May be fixed by #28753
Labels
lint Issues related to deno lint
Milestone

Comments

@felipecrs
Copy link

Hi there,

This feature would be great to use together with lint-staged:

{
  "lint-staged": {
    "*": [
+     "deno lint --allow-no-files --fix",
      "deno task --quiet --eval prettier --ignore-unknown --write",
      "deno task --quiet --eval cspell lint --no-must-find-files"
    ],
    "*.md": "deno task --quiet --eval markdownlint-cli2 --fix"
  }
}

Otherwise, I have to pick the specific files that deno lint supports:

"*.{ts,js,tsx,jsx}": "deno lint --fix",

Which is not too bad, but a bit more cumbersome than otherwise.

@marvinhagemeister marvinhagemeister added the lint Issues related to deno lint label Apr 3, 2025
@dsherret dsherret changed the title deno lint --allow-no-files deno lint --permit-no-files Apr 4, 2025
@dsherret dsherret added this to the 2.3.0 milestone Apr 4, 2025
@dsherret dsherret linked a pull request Apr 4, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lint Issues related to deno lint
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants