tsconfig.json 6.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "compilerOptions": {
  3. /* Basic Options */
  4. // "incremental": true, /* Enable incremental compilation */
  5. // "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
  6. "target": "es2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
  7. "module": "es2020", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
  8. "lib": ["es2015", "dom", "webworker", "ES2021.WeakRef"], /* Specify library files to be included in the compilation. */
  9. "allowJs": true, /* Allow javascript files to be compiled. */
  10. // "checkJs": true, /* Report errors in .js files. */
  11. "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
  12. "jsxImportSource": "solid-js",
  13. // "allowImportingTsExtensions": false,
  14. // "declaration": true, /* Generates corresponding '.d.ts' file. */
  15. // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
  16. "sourceMap": true, /* Generates corresponding '.map' file. */
  17. // "outFile": "./", /* Concatenate and emit output to single file. */
  18. // "outDir": "./dist/", /* Redirect output structure to the directory. */
  19. // "rootDir": "./src/", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
  20. // "composite": true, /* Enable project compilation */
  21. // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
  22. "removeComments": false, /* Do not emit comments to output. */
  23. "noEmit": true, /* Do not emit outputs. */
  24. // "importHelpers": true, /* Import emit helpers from 'tslib'. */
  25. "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
  26. "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
  27. /* Strict Type-Checking Options */
  28. "strict": true, /* Enable all strict type-checking options. */
  29. "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
  30. "strictNullChecks": false, /* Enable strict null checks. */
  31. // "strictFunctionTypes": true, /* Enable strict checking of function types. */
  32. // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
  33. "strictPropertyInitialization": false, /* Enable strict checking of property initialization in classes. */
  34. "skipLibCheck": true,
  35. "useDefineForClassFields": false, // ! important, https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#the-usedefineforclassfields-flag-and-the-declare-property-modifier
  36. // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
  37. // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
  38. /* Additional Checks */
  39. // "noUnusedLocals": true, /* Report errors on unused locals. */
  40. // "noUnusedParameters": true, /* Report errors on unused parameters. */
  41. // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
  42. // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
  43. /* Module Resolution Options */
  44. "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
  45. // "baseUrl": "./src", /* Base directory to resolve non-absolute module names. */
  46. "paths": { /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
  47. "solid-js": ["./src/vendor/solid"],
  48. "solid-js/web": ["./src/vendor/solid/web"],
  49. "solid-js/store": ["./src/vendor/solid/store"],
  50. "solid-js/jsx-runtime": ["./src/vendor/solid"],
  51. "solid-js/jsx-dev-runtime": ["./src/vendor/solid"],
  52. "solid-transition-group": ["./src/vendor/solid-transition-group"],
  53. },
  54. // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
  55. // "typeRoots": [], /* List of folders to include type definitions from. */
  56. "types": [ /* Type declaration files to be included in compilation. */
  57. "vite/client",
  58. "vitest/globals",
  59. "chrome",
  60. "dom-webcodecs"
  61. ],
  62. "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
  63. "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
  64. // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
  65. // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
  66. "resolveJsonModule": true
  67. /* Source Map Options */
  68. // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
  69. // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
  70. // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
  71. // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
  72. /* Experimental Options */
  73. // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
  74. // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
  75. },
  76. "exclude": [
  77. "node_modules",
  78. "public",
  79. "dist",
  80. "coverage",
  81. "src/scripts",
  82. "src/solid",
  83. "src/opus-recorder",
  84. "src/vendor/**/*.js",
  85. "*.js",
  86. "*.cjs",
  87. "tweb-design",
  88. "rlottie_with_printf"
  89. ]
  90. }