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}" + ] +}