Commit f8654a3a by Dominik Prokop Committed by GitHub

grafana/toolkit: Fix failing linter when there were lint issues (#21849)

parent b7faa902
......@@ -149,7 +149,9 @@ export const lintPlugin = useSpinner<Fixable>('Linting', async ({ fix }) => {
if (lintResults.length > 0) {
console.log('\n');
const failures: RuleFailure[] = lintResults.flat();
const failures = lintResults.reduce<RuleFailure[]>((failures, result) => {
return [...failures, ...result.failures];
}, []);
failures.forEach(f => {
// tslint:disable-next-line
console.log(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment