Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

Commit c8414b7

Browse files
author
ismay
authored
Merge pull request #23 from evilebottnawi/patch-1
Fixed: set `errored` to `false` if `warning` does not contain errors.
2 parents 68b4c4f + 86fe76a commit c8414b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ module.exports = (/* options */) => ({
9696
return prevWarnings
9797
}, [])
9898

99+
if (newWarnings.length === 0) {
100+
// eslint-disable-next-line no-param-reassign
101+
stylelintResult.errored = false
102+
}
103+
99104
return Object.assign(stylelintResult, { warnings: newWarnings })
100105
},
101106
})

0 commit comments

Comments
 (0)