From 8b697bac5c5cdfcb15cecc516a8a81c815dba843 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 9 May 2023 12:18:56 +0200 Subject: [PATCH] enable eslint typescript strict --- backend/.eslintrc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/.eslintrc.js b/backend/.eslintrc.js index d00b9199a..6a7d74b38 100644 --- a/backend/.eslintrc.js +++ b/backend/.eslintrc.js @@ -159,6 +159,7 @@ module.exports = { extends: [ 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', + 'plugin:@typescript-eslint/strict', 'plugin:type-graphql/recommended', ], rules: { @@ -169,6 +170,8 @@ module.exports = { '@typescript-eslint/prefer-regexp-exec': 'off', // this should not run on ts files: https://github.com/import-js/eslint-plugin-import/issues/2215#issuecomment-911245486 'import/unambiguous': 'off', + // this is not compatible with typeorm, due to joined tables can be null, but are not defined as nullable + '@typescript-eslint/no-unnecessary-condition': 'off', }, parserOptions: { tsconfigRootDir: __dirname,