How to ignore a folder in lint-staged?

59 views Asked by At

I have this configuration file for lint-staged:


{
  "*.{ts,tsx}": ["eslint --fix"],
  "*.css": "stylelint --fix"
}

However, I want to skip/ignore the coverage folder.

I tried:

{
  "*.{ts,tsx}": ["eslint --fix"],
  "*.css": "stylelint --fix",
  "ignore":["coverage"]
}

But it did not work.

0

There are 0 answers