diff --git a/ecoscan_app/package.json b/ecoscan_app/package.json index 2f8e766f..500b1555 100644 --- a/ecoscan_app/package.json +++ b/ecoscan_app/package.json @@ -7,8 +7,8 @@ "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web", - "lint": "prettier . --check && expo lint --max-warnings=0", - "fix": "prettier . --write && expo lint --fix" + "lint": "prettier . --check && tsc --noEmit && expo lint --max-warnings=0", + "fix": "prettier . --write && tsc --noEmit && expo lint --fix" }, "dependencies": { "@expo/vector-icons": "15.1.1", diff --git a/ecoscan_app/tsconfig.json b/ecoscan_app/tsconfig.json index ce27fee3..8bbb5cb8 100644 --- a/ecoscan_app/tsconfig.json +++ b/ecoscan_app/tsconfig.json @@ -2,6 +2,13 @@ "extends": "expo/tsconfig.base", "compilerOptions": { "strict": true, + "noUncheckedIndexedAccess": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitAny": true, + "noFallthroughCasesInSwitch": true, "paths": { "@/*": ["./*"] }