From 8d65f9c4ebaa865c4c97e71d021d7ac402f465ba Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Sun, 4 Feb 2018 11:26:47 +0100 Subject: [PATCH] mgr/dashboard_v2: add tslint no-consecutive-blank-lines rule Signed-off-by: Tiago Melo --- src/pybind/mgr/dashboard_v2/frontend/package.json | 2 +- src/pybind/mgr/dashboard_v2/frontend/src/polyfills.ts | 6 ------ src/pybind/mgr/dashboard_v2/frontend/tslint.json | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/pybind/mgr/dashboard_v2/frontend/package.json b/src/pybind/mgr/dashboard_v2/frontend/package.json index 0ad8b52569a..2dcb5ba2c61 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/package.json +++ b/src/pybind/mgr/dashboard_v2/frontend/package.json @@ -51,7 +51,7 @@ "karma-phantomjs-launcher": "^1.0.4", "protractor": "~5.1.2", "ts-node": "~3.2.0", - "tslint": "~5.7.0", + "tslint": "~5.9.1", "tslint-eslint-rules": "^4.1.1", "typescript": "~2.4.2" } diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/polyfills.ts b/src/pybind/mgr/dashboard_v2/frontend/src/polyfills.ts index 314c7505e67..4b173ff27af 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/polyfills.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/polyfills.ts @@ -40,27 +40,21 @@ import 'core-js/es6/weak-map'; /** IE10 and IE11 requires the following for the Reflect API. */ // import 'core-js/es6/reflect'; - /** Evergreen browsers require these. **/ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. import 'core-js/es7/reflect'; - /** * Required to support Web Animations `@angular/platform-browser/animations`. * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation **/ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. - - /*************************************************************************************************** * Zone JS is required by Angular itself. */ import 'zone.js/dist/zone'; // Included with Angular CLI. - - /*************************************************************************************************** * APPLICATION IMPORTS */ diff --git a/src/pybind/mgr/dashboard_v2/frontend/tslint.json b/src/pybind/mgr/dashboard_v2/frontend/tslint.json index 1e2b204606d..bc9d7feef8c 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/tslint.json +++ b/src/pybind/mgr/dashboard_v2/frontend/tslint.json @@ -6,6 +6,7 @@ "tslint-eslint-rules" ], "rules": { + "no-consecutive-blank-lines": true, "arrow-return-shorthand": true, "callable-types": true, "class-name": true, @@ -107,7 +108,6 @@ "variable-declaration": "nospace" } ], - "typeof-compare": true, "unified-signatures": true, "variable-name": [ true, -- 2.39.5