From d08e136d3919504fba6c056c982495ce2f39f653 Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Thu, 19 Dec 2019 00:47:39 -0100 Subject: [PATCH] mgr/dashboard: Move TS compile rules into tsconfig.json Signed-off-by: Tiago Melo --- src/pybind/mgr/dashboard/frontend/package.json | 2 +- src/pybind/mgr/dashboard/frontend/tsconfig.json | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/package.json b/src/pybind/mgr/dashboard/frontend/package.json index 0f980c8c50588..96f6be8c2250f 100644 --- a/src/pybind/mgr/dashboard/frontend/package.json +++ b/src/pybind/mgr/dashboard/frontend/package.json @@ -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", diff --git a/src/pybind/mgr/dashboard/frontend/tsconfig.json b/src/pybind/mgr/dashboard/frontend/tsconfig.json index 35d41a569a03a..1766bd15ae2a2 100644 --- a/src/pybind/mgr/dashboard/frontend/tsconfig.json +++ b/src/pybind/mgr/dashboard/frontend/tsconfig.json @@ -10,6 +10,8 @@ "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, + "noUnusedLocals": true, + "noUnusedParameters": true, "target": "es2015", "typeRoots": [ "node_modules/@types" -- 2.39.5