sync to work in every directory(vscode)

This commit is contained in:
Ulf Gebhardt 2023-03-12 02:09:47 +01:00
parent 448bc55b7f
commit 18eb7786f7
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -14,6 +14,9 @@ module.exports = {
'plugin:import/typescript', 'plugin:import/typescript',
], ],
settings: { settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': { 'import/resolver': {
typescript: true, typescript: true,
node: true, node: true,
@ -93,7 +96,7 @@ module.exports = {
'@typescript-eslint/prefer-regexp-exec': 'off', '@typescript-eslint/prefer-regexp-exec': 'off',
}, },
parserOptions: { parserOptions: {
tsconfigRootDir: __dirname, tsconfigRootDir: './',
project: ['./tsconfig.json'], project: ['./tsconfig.json'],
// this is to properly reference the referenced project database without requirement of compiling it // this is to properly reference the referenced project database without requirement of compiling it
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true, EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true,