W
W
wakenbyWork2021-09-21 18:33:13
git
wakenbyWork, 2021-09-21 18:33:13

lint-staged not working?

"husky": {
  "hooks": {
    "pre-commit": "lint-staged"
  }
},
"lint-staged": {
  "*.scss": [
    "stylelint --fix",
    "git add"
  ],
  "*.js": [
    "eslint --fix",
    "git add"
  ]
}


It's just that neither eslint nor stylelint works ((

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wakenbyWork, 2021-09-22
@wakenbyWork

Everything works if you roll back from the latest version of husky (currently version 7.0.2) to version 4.3.8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question