tsconfig.json 2.0 KB

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