Fix inconsistent errored
properties in stylelint.lint()
return value
#6982
Labels
errored
properties in stylelint.lint()
return value
#6982
What steps are needed to reproduce the bug?
reportNeedlessDisables
.stylelint.lint
.results.source.errored
.I leave a link to the repository where I reproduced the error: https://github.com/dvun0g/issue-stylelint-reportNeedlessDisables-not-error-source.
Description:
When running
stylelint.list
, if the file contains onlyreportNeedlessDisables
errors, the errored field will befalse
. You can clearly see in https://github.com/dvun0g/issue-stylelint-reportNeedlessDisables-not-error-source/blob/trunk/results.stylelint.json.What Stylelint configuration is needed to reproduce the bug?
Any, i used this
How did you run Stylelint?
Start stylelint using the Node JS API
stylelint.lint
.Which version of Stylelint or dependencies are you using?
What did you expect to happen?
It was expected that the errored field would be set to
true
, if there arereportNeedlessDisables
errors in the file.What actually happened?
Field errored equal
false
.Does the bug relate to non-standard syntax?
No, I use css.
Proposal to fix the bug
No response
The text was updated successfully, but these errors were encountered: