]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: Move TS compile rules into tsconfig.json
authorTiago Melo <tmelo@suse.com>
Thu, 19 Dec 2019 01:47:39 +0000 (00:47 -0100)
committerTiago Melo <tmelo@suse.com>
Fri, 31 Jan 2020 14:16:09 +0000 (13:16 -0100)
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/package.json
src/pybind/mgr/dashboard/frontend/tsconfig.json

index 0f980c8c5058886213b60a9ad39779aeca927757..96f6be8c2250f2bbf58a710a1eb5ea9fe307da69 100644 (file)
@@ -39,7 +39,7 @@
     "lint:tslint": "ng lint",
     "lint:prettier": "prettier --list-different \"{src,e2e}/**/*.{ts,scss}\"",
     "lint:html": "htmllint src/app/**/*.html && html-linter --config html-linter.config.json",
-    "lint:tsc": "npm run test:config && tsc -p src/tsconfig.app.json --noEmit --noUnusedLocals --noUnusedParameters && tsc -p tsconfig.spec.json --noEmit --noUnusedLocals --noUnusedParameters && tsc -p e2e/tsconfig.e2e.json --noEmit --noUnusedLocals --noUnusedParameters",
+    "lint:tsc": "npm run test:config && tsc -p src/tsconfig.app.json --noEmit && tsc -p tsconfig.spec.json --noEmit && tsc -p e2e/tsconfig.e2e.json --noEmit",
     "lint": "npm run lint:tsc && npm run lint:tslint && npm run lint:prettier && npm run lint:html",
     "fix:prettier": "prettier --write \"{src,e2e}/**/*.{ts,scss}\"",
     "fix:tslint": "npm run lint:tslint -- --fix",
index 35d41a569a03a2de253399ba83f0ca25d7de01b8..1766bd15ae2a266b6f568fc905a847648896b9c4 100644 (file)
@@ -10,6 +10,8 @@
     "moduleResolution": "node",
     "emitDecoratorMetadata": true,
     "experimentalDecorators": true,
+    "noUnusedLocals": true,
+    "noUnusedParameters": true,
     "target": "es2015",
     "typeRoots": [
       "node_modules/@types"