Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2305 - Fix VTI printing empty filenames #2306

Merged

Conversation

andrewisaburden
Copy link
Contributor

This was due to eslint-plugin-vue errors being ignored

Fixes #2305

This was due to eslint-plugin-vue errors being ignored
vti/src/cli.ts Outdated
console.log(`${chalk.green('File')} : ${chalk.green(absFilePath)}`);
if (res.filter(r => r.source !== 'eslint-plugin-vue').length > 0) {
console.log(`${chalk.green('File')} : ${chalk.green(absFilePath)}`);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say just filter out the errors in res, and then check res.length.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like so?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly, thanks 👍

@octref octref merged commit 9cc4943 into vuejs:master Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VTI prints empty filenames if the only error is an eslint-plugin-vue error
2 participants