Skip to content

Commit 6d9cf7f

Browse files
Fixed: set errored to false if warning no contains errors.
styled-components#22 BTW, i would recommend don't changed `stylelintResult`, just add node in `README.md` about disable `no-empty-source` and `no-missing-end-of-source-newline`, in next version we can change `stylelintResult` (example rename `warnings` to another name) and `stylelint-processor-styled-components` will cease to work as expected.
1 parent 9842e3e commit 6d9cf7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ module.exports = (/* options */) => ({
9595
prevWarnings.push(correctedWarning)
9696
return prevWarnings
9797
}, [])
98+
99+
if (newWarnings.length === 0) {
100+
stylelintResult.errored = false
101+
}
98102

99103
return Object.assign(stylelintResult, { warnings: newWarnings })
100104
},

0 commit comments

Comments
 (0)