From c6d4e8f94dbc97131d1cacd40a3b7171fb4574ac Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Fri, 3 May 2024 16:31:27 +0200 Subject: [PATCH] Fix duplicate jsconfig --- frontend/jsconfig.json | 10 ---------- frontend/tsconfig.json | 44 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 10 deletions(-) delete mode 100644 frontend/jsconfig.json create mode 100644 frontend/tsconfig.json diff --git a/frontend/jsconfig.json b/frontend/jsconfig.json deleted file mode 100644 index f08d6838..00000000 --- a/frontend/jsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "compilerOptions": { - "paths": { - "volto-plonede": [ - "addons/volto-plonede/src" - ] - }, - "baseUrl": "src" - } -} \ No newline at end of file diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json new file mode 100644 index 00000000..5986bf80 --- /dev/null +++ b/frontend/tsconfig.json @@ -0,0 +1,44 @@ +{ + "compilerOptions": { + "target": "ESNext", + "lib": [ + "DOM", + "DOM.Iterable", + "ESNext" + ], + "module": "commonjs", + "allowJs": true, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "Node", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + "paths": { + "@plone/volto/*": [ + "../node_modules/@plone/volto/src/*", + "../node_modules/@plone/volto/types/*" + ], + "volto-plonede": [ + "addons/volto-plonede/src" + ] + }, + "baseUrl": "src" + }, + "include": [ + "src" + ], + "exclude": [ + "node_modules", + "build", + "public", + "coverage", + "src/**/*.test.{js,jsx,ts,tsx}", + "src/**/*.spec.{js,jsx,ts,tsx}", + "src/**/*.stories.{js,jsx,ts,tsx}" + ] +}