The following gulp pipe fails:
gulpStylelint({
failAfterError: true,
fix: hasFixFlag(),
reporters: [{ formatter: "verbose", console: true }]
})
With the following debug output:
user@host ~$ gulp lintscss
[17:18:13] Using gulpfile ~/gulpfile.js
[17:18:13] Starting 'lintscss'...
[17:18:14] 'lintscss' errored after 783 ms
[17:18:14] TypeError in plugin "gulp-stylelint"
Message:
Cannot read properties of undefined (reading 'ruleMetadata')
Stack:
TypeError: Cannot read properties of undefined (reading 'ruleMetadata')
at printProblems (~/node_modules/stylelint/lib/formatters/verboseFormatter.js:72:33)
at verboseFormatter (~/node_modules/stylelint/lib/formatters/verboseFormatter.js:92:3)
at Object.apply ~/node_modules/import-lazy/index.js:16:20)
at reporter (~/node_modules/@ronilaukkarinen/gulp-stylelint/src/reporter-factory.js:45:27)
at ~/node_modules/@ronilaukkarinen/gulp-stylelint/src/index.js:132:38
at Array.map (<anonymous>)
at passLintResultsThroughReporters (~/node_modules/@ronilaukkarinen/gulp-stylelint/src/index.js:132:22)
npx stylelint -f "verbose" <filename> works fine.
The following gulp pipe fails:
With the following debug output:
npx stylelint -f "verbose" <filename>works fine.