From 200aa296333f4f54f94ae8a05f9f53a090571fe8 Mon Sep 17 00:00:00 2001 From: Jason Poon <git@jasonpoon.ca> Date: Sat, 3 Feb 2018 18:19:56 -0800 Subject: [PATCH] Remove need to install gulp on travis --- .travis.yml | 5 +---- gulpfile.js | 2 +- package.json | 1 + test/tslint.json | 6 ------ tsconfig.json | 3 ++- 5 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 test/tslint.json diff --git a/.travis.yml b/.travis.yml index 7217c57a96d..501502e30ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,9 +35,6 @@ before_install: sleep 3; fi -install: -- npm install -g gulp; -- npm install; script: - gulp forceprettier @@ -46,7 +43,7 @@ script: echo "Prettier Failed. Run `gulp` or `gulp forceprettier`"; exit 1; fi -- gulp +- npm run build - npm test --silent; before_deploy: diff --git a/gulpfile.js b/gulpfile.js index 01962ae5efb..d0cd7238984 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -20,7 +20,7 @@ gulp.task('tslint', function() { '!node_modules/**', '!typings/**', ]) - .pipe(tslint({ formatter: 'verbose' })) + .pipe(tslint({ formatter: 'prose' })) .pipe(tslint.report({ summarizeFailureOutput: true })); }); diff --git a/package.json b/package.json index d8692ad1216..dfafa1bec00 100644 --- a/package.json +++ b/package.json @@ -576,6 +576,7 @@ }, "scripts": { "vscode:prepublish": "gulp compile", + "build": "gulp", "test": "node ./node_modules/vscode/bin/test", "postinstall": "node ./node_modules/vscode/bin/install" }, diff --git a/test/tslint.json b/test/tslint.json deleted file mode 100644 index 75efc86e4f7..00000000000 --- a/test/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "../tslint.json", - "rules": { - "no-unused-variable": false - } -} diff --git a/tsconfig.json b/tsconfig.json index 6db33735cbf..324bc4d6487 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,12 @@ { "compilerOptions": { - "allowUnusedLabels": false, "module": "commonjs", "target": "es6", "outDir": "out", "noImplicitAny": true, "noImplicitReturns": true, + "noUnusedLocals": false, + "noUnusedParameters": false, "suppressImplicitAnyIndexErrors": true, "lib": [ "es6"