From 091a4fa9882ebc8354a2082b386921c4a361517e Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Mon, 18 Sep 2023 08:22:33 +0200 Subject: [PATCH] chore(binding-coap): enable strict-boolean-expressions and null checks --- packages/binding-coap/.eslintrc.json | 5 ++++- packages/binding-coap/test/tsconfig.json | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/binding-coap/.eslintrc.json b/packages/binding-coap/.eslintrc.json index c4237119e..70b9f134b 100644 --- a/packages/binding-coap/.eslintrc.json +++ b/packages/binding-coap/.eslintrc.json @@ -1,3 +1,6 @@ { - "extends": "../../.eslintrc.js" + "extends": "../../.eslintrc.js", + "rules": { + "@typescript-eslint/strict-boolean-expressions": ["error"] + } } diff --git a/packages/binding-coap/test/tsconfig.json b/packages/binding-coap/test/tsconfig.json index 786b1b616..c2cefa10e 100644 --- a/packages/binding-coap/test/tsconfig.json +++ b/packages/binding-coap/test/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "../tsconfig.json", "compilerOptions": { - "rootDir": ".." + "rootDir": "..", + "strictNullChecks": true }, "include": ["*.ts", "**/*.ts", "../src/**/*.ts"] }