From f6e7f389d62c6e18f150833e7defd003d28e36c7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 12 Nov 2021 10:58:13 +0900 Subject: [PATCH] improve lint --- packages/backend/.eslintrc.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/backend/.eslintrc.js b/packages/backend/.eslintrc.js index bafd0c9b63..5ce38b9cc9 100644 --- a/packages/backend/.eslintrc.js +++ b/packages/backend/.eslintrc.js @@ -1,6 +1,10 @@ module.exports = { root: true, parser: '@typescript-eslint/parser', + parserOptions: { + tsconfigRootDir: __dirname, + project: ['./tsconfig.json'], + }, plugins: [ '@typescript-eslint', 'import' @@ -51,6 +55,9 @@ module.exports = { '@typescript-eslint/no-inferrable-types': ['warn'], '@typescript-eslint/no-empty-function': ['off'], '@typescript-eslint/no-non-null-assertion': ['off'], + '@typescript-eslint/no-misused-promises': ['error', { + 'checksVoidReturn': false, + }], 'import/no-unresolved': ['off'], 'import/no-default-export': ['warn'], },