]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard_v2: add tslint no-consecutive-blank-lines rule
authorTiago Melo <tmelo@suse.com>
Sun, 4 Feb 2018 10:26:47 +0000 (11:26 +0100)
committerRicardo Dias <rdias@suse.com>
Mon, 5 Mar 2018 13:07:06 +0000 (13:07 +0000)
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard_v2/frontend/package.json
src/pybind/mgr/dashboard_v2/frontend/src/polyfills.ts
src/pybind/mgr/dashboard_v2/frontend/tslint.json

index 0ad8b52569a0cd2816c80e587107dd08086bc85b..2dcb5ba2c6119ed6f2a8102b920b66c877981db4 100644 (file)
@@ -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"
   }
index 314c7505e678f47d5d31eb222c380c5860d8aec3..4b173ff27afa3c655d661dc46862c3c1d0b5d1e8 100644 (file)
@@ -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
  */
index 1e2b204606d7a9f8d1c564d9bce2944e8d4f2a97..bc9d7feef8c75f4587365d70ae66b07fb1e12a6e 100644 (file)
@@ -6,6 +6,7 @@
     "tslint-eslint-rules"
   ],
   "rules": {
+    "no-consecutive-blank-lines": true,
     "arrow-return-shorthand": true,
     "callable-types": true,
     "class-name": true,
         "variable-declaration": "nospace"
       }
     ],
-    "typeof-compare": true,
     "unified-signatures": true,
     "variable-name": [
       true,