Skip to content

deno lint --permit-no-files #28728

Closed
@felipecrs

Description

@felipecrs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lintIssues related to deno lint

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions