From 18eb7786f74d54e7db3be3f7e0badc4cb2cf1883 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sun, 12 Mar 2023 02:09:47 +0100 Subject: [PATCH] sync to work in every directory(vscode) --- backend/.eslintrc.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/.eslintrc.js b/backend/.eslintrc.js index 0ff67d095..d8d232b25 100644 --- a/backend/.eslintrc.js +++ b/backend/.eslintrc.js @@ -14,6 +14,9 @@ module.exports = { 'plugin:import/typescript', ], settings: { + 'import/parsers': { + '@typescript-eslint/parser': ['.ts', '.tsx'], + }, 'import/resolver': { typescript: true, node: true, @@ -93,7 +96,7 @@ module.exports = { '@typescript-eslint/prefer-regexp-exec': 'off', }, parserOptions: { - tsconfigRootDir: __dirname, + tsconfigRootDir: './', project: ['./tsconfig.json'], // this is to properly reference the referenced project database without requirement of compiling it EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true,