A set of rules to enforce good practices for istanbuljs.
$ npm install --save-dev eslint eslint-plugin-istanbul
Configure it in package.json
.
{
"name": "my-awesome-project",
"eslintConfig": {
"plugins": ["istanbul"],
"rules": {
"istanbul/no-ignore-file": "error",
"istanbul/prefer-ignore-reason": "error"
}
}
}
- no-ignore-file - Bans istanbul ignore file comment.
- prefer-ignore-reason - Enforce specifying a reason to ignore comments.
See the ESLint docs for more information about extending config files.