tsconfig.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. ]
  34. },
  35. "include": [
  36. "frontend/js/**/*.*",
  37. "modules/**/frontend/js/**/*.*",
  38. "test/frontend/**/*.*",
  39. "modules/**/test/frontend/**/*.*",
  40. "frontend/stories/**/*.*",
  41. "modules/**/stories/**/*.*",
  42. ".storybook/*.*",
  43. "cypress",
  44. "types"
  45. ],
  46. "exclude": ["**/*.min.js"]
  47. }