tsconfig.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "$schema": "http://json.schemastore.org/tsconfig",
  3. "extends": "../../tsconfig.base.json",
  4. "compilerOptions": {
  5. "jsx": "preserve",
  6. "resolveJsonModule": true,
  7. "types": ["vitest/globals", "@testing-library/jest-dom/vitest"],
  8. "paths": {
  9. "~/*": ["./src/*"],
  10. "^/*": ["./*"]
  11. },
  12. /* TODO: remove below flags for strict checking */
  13. "strict": false,
  14. "strictNullChecks": true,
  15. "strictBindCallApply": true,
  16. "noImplicitAny": false,
  17. "noImplicitOverride": true,
  18. // Note: To transform paths for both the output .js and .d.ts files, you need both of the below entries
  19. "plugins": [
  20. // Transform paths in output .js files
  21. { "transform": "typescript-transform-paths" },
  22. // Transform paths in output .d.ts files (Include this line if you output declarations files)
  23. { "transform": "typescript-transform-paths", "afterDeclarations": true }
  24. ]
  25. },
  26. "include": ["next-env.d.ts", "config", "src"],
  27. "exclude": [
  28. "src/**/*.vendor-styles.ts",
  29. "src/**/*.vendor-styles.prebuilt.js"
  30. ],
  31. "ts-node": {
  32. "transpileOnly": true,
  33. "swc": true,
  34. "compilerOptions": {
  35. "module": "CommonJS",
  36. "moduleResolution": "Node"
  37. }
  38. }
  39. }