Closed jobara closed 3 years ago
Disabling json5lint, mdjsonlint, or stylelint throws the error Cannot read property 'includes' of undefined.
json5lint
mdjsonlint
stylelint
Cannot read property 'includes' of undefined
The errors come from the related runChecks function related to
runChecks
if (that.options.config.enabled && !checksToRun || checksToRun.includes(that.options.key)) {
Steps to reproduce the behavior:
npm run lint
The linting should skip the disabled checks.
The checks needed parentheses, as in "the check must be enabled" AND "one of these two things must be true". Fixing it up now.
Describe the bug
Disabling
json5lint
,mdjsonlint
, orstylelint
throws the errorCannot read property 'includes' of undefined
.The errors come from the related
runChecks
function related toTo reproduce
Steps to reproduce the behavior:
npm run lint
Expected behavior
The linting should skip the disabled checks.
Technical details
Desktop