In eslint.json
configuration, ESLint
allows to configure rule strictness using the following logic:
- 0 - "off"
- 1 - "warning"
- 2 - "error"
Example:
{
"rules": {
"jasmine/valid-expect": 2,
"eqeqeq": [2, "smart"]
}
}
Question: Is it possible to make all plugin-specific rules strict (code 2)?
In this case, we want all rules coming from jasmine
(eslint-plugin-jasmine
plugin) produce an error if there is a violation.
I've tried to specify "jasmine/*": 2
and "jasmine": 2
, but both failed with a "definition for rule ... not found" error.