tsconfig.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "compilerOptions": {
  3. "target": "esnext" /* Specify ECMAScript target version */,
  4. "module": "esnext" /* Specify module code generation */,
  5. "allowJs": true /* Allow JavaScript files to be compiled. */,
  6. "resolveJsonModule": true,
  7. // "checkJs": true /* Report errors in .js files. */,
  8. "jsx": "preserve" /* Specify JSX code generation */,
  9. "noEmit": true /* Do not emit outputs. */,
  10. "strict": true /* Enable all strict type-checking options. */,
  11. "moduleResolution": "bundler" /* Specify module resolution strategy */,
  12. "isolatedModules": true,
  13. "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
  14. "skipLibCheck": true /* Skip type checking of declaration files. */,
  15. "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
  16. "experimentalDecorators": true /* Allow decorators in writefull - inversify */,
  17. "emitDecoratorMetadata": true /* Allow decorators in writefull - inversify */,
  18. "paths": {
  19. "@/*": ["./frontend/js/*"],
  20. "@modules/*": ["./modules/*"],
  21. "@overleaf/o-error": ["../../libraries/o-error"],
  22. "@overleaf/ranges-tracker": ["../../libraries/ranges-tracker"],
  23. /* can't make this entry @types because that conflicts with the "types" entry below */
  24. "@ol-types/*": ["./types/*"],
  25. "@wf/*": ["./modules/writefull/frontend/js/integration/src/*"],
  26. "@wf-tests/*": ["./modules/writefull/frontend/js/integration/tests/*"]
  27. },
  28. "types": [
  29. "cypress",
  30. "@testing-library/cypress",
  31. "reflect-metadata",
  32. "vitest/globals",
  33. "@testing-library/jest-dom",
  34. "@types/dom-speech-recognition"
  35. ]
  36. },
  37. "include": [
  38. "frontend/js/**/*.*",
  39. "modules/**/frontend/js/**/*.*",
  40. "test/frontend/**/*.*",
  41. "modules/**/test/frontend/**/*.*",
  42. "frontend/stories/**/*.*",
  43. "modules/**/stories/**/*.*",
  44. ".storybook/*.*",
  45. "cypress",
  46. "types"
  47. ],
  48. "exclude": [
  49. "**/*.min.js",
  50. "modules/writefull/frontend/js/integration/src/vite-env.d.ts"
  51. ]
  52. }