From aa06723974a71dfbc2f793f95b3537081a87500f Mon Sep 17 00:00:00 2001 From: Dan Toft Date: Sat, 9 Dec 2023 16:32:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=92=20-=20[react-personal-anniversary-?= =?UTF-8?q?counter]=20Don't=20tell=20me=20how=20to=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- samples/react-personal-anniversary-counter/.eslintrc.js | 4 ++-- samples/react-personal-anniversary-counter/tsconfig.json | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/samples/react-personal-anniversary-counter/.eslintrc.js b/samples/react-personal-anniversary-counter/.eslintrc.js index 473df80cd..3ea6d48ff 100644 --- a/samples/react-personal-anniversary-counter/.eslintrc.js +++ b/samples/react-personal-anniversary-counter/.eslintrc.js @@ -85,7 +85,7 @@ module.exports = { // or else return the object to a caller (who assumes this responsibility). Unterminated // promise chains are a serious issue. Besides causing errors to be silently ignored, // they can also cause a NodeJS process to terminate unexpectedly. - '@typescript-eslint/no-floating-promises': 2, + '@typescript-eslint/no-floating-promises': 1, // RATIONALE: Catches a common coding mistake. '@typescript-eslint/no-for-in-array': 2, // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json @@ -349,4 +349,4 @@ module.exports = { rules: {} } ] -}; \ No newline at end of file +}; diff --git a/samples/react-personal-anniversary-counter/tsconfig.json b/samples/react-personal-anniversary-counter/tsconfig.json index c4cd392ad..7314e945f 100644 --- a/samples/react-personal-anniversary-counter/tsconfig.json +++ b/samples/react-personal-anniversary-counter/tsconfig.json @@ -12,8 +12,7 @@ "skipLibCheck": true, "outDir": "lib", "inlineSources": false, - "noImplicitAny": true, - + "noImplicitAny": false, "typeRoots": [ "./node_modules/@types", "./node_modules/@microsoft" @@ -26,7 +25,9 @@ "dom", "es2015.collection", "es2015.promise" - ] + ], + "strictNullChecks": false, + "noUnusedLocals": false }, "include": [ "src/**/*.ts",