tsconfig.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "compilerOptions": {
  3. "lib": ["es2015", "dom"],
  4. // Target latest version of ECMAScript.
  5. "target": "esnext",
  6. // Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'.
  7. "module": "esnext",
  8. // Search under node_modules for non-relative imports.
  9. "moduleResolution": "node",
  10. // Process & infer types from .js files.
  11. "allowJs": true,
  12. // Report errors in .js files.
  13. "checkJs": false,
  14. // Don't emit; allow Babel to transform files.
  15. "noEmit": true,
  16. // Enable strictest settings like strictNullChecks & noImplicitAny.
  17. "strict": true,
  18. // Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
  19. "allowSyntheticDefaultImports": true,
  20. // Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'.
  21. "esModuleInterop": true,
  22. // Specify JSX code generation: 'preserve', 'react-native', or 'react'.
  23. "jsx": "preserve",
  24. // Import emit helpers (e.g. __extends, __rest, etc..) from tslib
  25. "importHelpers": true,
  26. // Enables experimental support for ES7 decorators.
  27. "experimentalDecorators": true,
  28. // Generates corresponding .map file.
  29. "sourceMap": true,
  30. // Disallow inconsistently-cased references to the same file.
  31. "forceConsistentCasingInFileNames": true,
  32. // Allow json import
  33. "resolveJsonModule": true,
  34. // skip type checking of declaration files
  35. "skipLibCheck": true,
  36. "baseUrl": ".",
  37. "paths": {
  38. "@/*": ["src/*"],
  39. "utils/*": ["src/utils/*"],
  40. "components/*": ["src/components/*"],
  41. "pages/*": ["src/pages/*"],
  42. },
  43. "typeRoots": [
  44. "node_modules/@types"
  45. ],
  46. },
  47. "include": [
  48. "src/**/*"
  49. ],
  50. "exclude": [
  51. "node_modules",
  52. "**/*.spec.ts",
  53. "src/utils/common.ts"
  54. ]
  55. }