From ed9c7a29726a2224b1d1836be7c4e0474ce5fc4c Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Fri, 8 Sep 2023 12:11:02 +0200 Subject: [PATCH] chore: enable eslint/strict-boolean-expressions and strictNullChecks --- .eslintrc.js | 1 + tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index d8f683df7..ee76b16aa 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -29,6 +29,7 @@ module.exports = { "@typescript-eslint/no-unused-vars": "off", // or "@typescript-eslint/no-unused-vars": "off", "no-use-before-define": "off", "@typescript-eslint/no-use-before-define": ["error"], + "@typescript-eslint/strict-boolean-expressions": ["error"], "unused-imports/no-unused-imports": "error", "unused-imports/no-unused-vars": [ "warn", diff --git a/tsconfig.json b/tsconfig.json index 5b3cda168..5e9e08f4a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,7 @@ "module": "commonjs", "outDir": "dist", "strict": true, + "strictNullChecks": true, "composite": true, "incremental": true, "sourceMap": true,