panuhorsmalahti / gulp-tslint

TypeScript linter plugin for Gulp
MIT License
118 stars 44 forks source link

msbuild formatter does not output errors to 'error list'-tab in visual studio enterprise 2015 #83

Open luukgruijs opened 7 years ago

luukgruijs commented 7 years ago

gulp-tslint version: ^6.1.2 tslint version: ^3.15.1 Operating system: Windows

gulp configuration:

/// <binding BeforeBuild='lint' />
var gulp            = require('gulp');
var tslint          = require('gulp-tslint');

// ts lint
gulp.task('lint', function () {
    gulp.src('App/**/*.ts')
        .pipe(tslint({
            formatter: 'msbuild'
        }))
        .pipe(tslint.report({
            emitError: false
        }));
});

console output: console-taskrunner

Errorlist output has no warnings errorlist

can anyone tell me if i do something wrong or that there maybe is an issue?

Thanks in advance.

unional commented 7 years ago

May relate to this: https://github.com/panuhorsmalahti/gulp-tslint/issues/95

panuhorsmalahti commented 7 years ago

Not that it should matter, but you might give gulp-tslint 7 / tslint 4 a go. It's the latest version in any case.

JyrkiHei commented 7 years ago

Hi! Having the same problem. Is it even supposed directly? I'm running the gulp-task in Task Runner Explorer /w Visual Studio 2015 Enterprise Update 3.

// Task slightly modified gulp.task("tslint", () => gulp.src(['Helpers.ts']) .pipe(tslint({ formatter: "msbuild" })) .pipe(tslint.report({ emitError: false })) );

Package.json "gulp-tslint": "^7.0.1", "tslint": "^4.3.1",

304NotModified commented 7 years ago

Also for me I can't get it working. It shows only the errors in the task runner explorer.

Got anyone it working? Or is this not supported?

https://github.com/panuhorsmalahti/gulp-tslint/issues/95 doesn't seem related