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

Output to HTML file #102

Open
parky128 opened this issue Jan 16, 2017 · 1 comment
Open

Output to HTML file #102

parky128 opened this issue Jan 16, 2017 · 1 comment

Comments

@parky128
Copy link

I saw this closed issue and wondered if there was a way to get a HTML report produced?

The link in that closed issue seems to reference an older line of code in the suggestions offered.

In gulp-eslint I can do:

.pipe(plugins.eslint.format('html', function(results) {
      fs.writeFileSync(path.join(paths.reports, 'eslint-report.html'), results);
    }))

Is there anything similar that can be done with this module?

Thanks

@panuhorsmalahti
Copy link
Owner

Yes, it's an old reference. It should point here:

gulp.task('output-to-file', function(){

That shows you how to write to file, but not sure how to output in HTML. You probably need a custom formatter ( https://palantir.github.io/tslint/develop/custom-formatters/ ).

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

No branches or pull requests

2 participants