How to configure Visual Studio Code and tslint? -


in 0.3.0, i'm seeing intellisense typescript. however, expecting see tslinting have tslint.json. vsc support linting natively or need lean on gulp?

if latter, configurable run files changed or need manual task launched explicitly.

you can add linting task gulpfile below. or watcher task. notice use typescript, not gulp plug in nor tslint, though fine too.

gulp.task('ts-watcher', function() {     gulp.watch('./src/**/*.ts', ['ts-compile']); });  gulp.task('ts-compile', function(done) {         runtsc('src/client', done); });  function runtsc(directory, done) {     var tscjs = path.join(process.cwd(), 'node_modules/typescript/bin/tsc.js');     var childprocess = cp.spawn('node', [tscjs, '-p', directory], { cwd: process.cwd() });     childprocess.stdout.on('data', function (data) {         // code read output         console.log(data.tostring());     });     childprocess.stderr.on('data', function (data) {         // code read output         console.log(data.tostring());     });     childprocess.on('close', function () {         done();     }); } 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -