-
Notifications
You must be signed in to change notification settings - Fork 204
Description
kcd-scriptsversion: 11.2.0nodeversion: anynpm(oryarn) version: any
Relevant code or config
What you did:
Run CI with "kcd-scripts": "^11.1.0".
What happened:
After release of v11.2.0 CI fails due to uncovered lines.
Turns out istanbul expects the /* istanbul ignore else */ right in between else if now.
The pre-commit hook reverts the change and therefore commits fixing this have to be committed with --no-verify.
Reproduction repository:
testing-library/user-event#706
Problem description:
kcd-scripts lint does not flag /* istanbul ignore else */ else if.
kcd-scripts/husky adds a pre-commit hook that changes the (now) correct else /* istanbul ignore else */ if back to /* istanbul ignore else */ else if.
Suggested solution:
Report a lint error for /* istanbul ignore else */ else if.
Lint-fix to else /* istanbul ignore else */ if.