tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

tsconfig.json (2376B)


      1 {
      2  "extends": "./node_modules/gts/tsconfig-google.json",
      3  "compilerOptions": {
      4    "lib": ["dom", "ES2023"],
      5    "module": "esnext",
      6    // Use types only from these packages (not everything in package.json, which is the default).
      7    // Note that TypeScript's `/// <reference />` is the same as adding an entry here - it's global
      8    // to the whole project.
      9    "types": [
     10      "@types/dom-mediacapture-transform",
     11      "@webgpu/types",
     12      // Required for standalone.ts
     13      "@types/jquery",
     14      "@types/w3c-image-capture",
     15    ],
     16    /* Output options */
     17    "noEmit": true,
     18    /* Strict type-checking options */
     19    "allowJs": true,
     20    "checkJs": false,
     21    "strict": true,
     22    /* tsc lint options */
     23    "allowUnusedLabels": false,
     24    "noImplicitOverride": true,
     25    "noImplicitReturns": true,
     26    /* These should be caught by eslint instead */
     27    "noFallthroughCasesInSwitch": false,
     28    "noUnusedLocals": false,
     29    "noUnusedParameters": false,
     30    "allowUnreachableCode": true,
     31    /* Compiler warnings we intentionally don't use */
     32    // - Would be nice, but produces lots of errors that probably aren't worth fixing
     33    "noUncheckedIndexedAccess": false,
     34    // - We could make our code pass this, but it doesn't seem to provide much value to us
     35    "noPropertyAccessFromIndexSignature": false,
     36    // - Doesn't work with @webgpu/types right now, also has annoying interactions and limited value
     37    "exactOptionalPropertyTypes": false,
     38    /* Module Options */
     39    "moduleResolution": "node",
     40    "esModuleInterop": false,
     41    "isolatedModules": true,
     42    "skipLibCheck": true,
     43    "target": "es2020"
     44    // @tsconfig/strictest is a useful reference for new options:
     45    // https://github.com/tsconfig/bases/blob/main/bases/strictest.json
     46  },
     47  "include": [
     48    "src/**/*.ts",
     49    "src/external/**/*.js",
     50  ],
     51  "typedocOptions": {
     52    "entryPointStrategy": "expand",
     53    "entryPoints": [
     54      "src/common/framework/",
     55      "src/common/util/",
     56      "src/webgpu/",
     57    ],
     58    "exclude": [
     59      "**/*.spec.ts",
     60      "**/*.html.ts",
     61      "src/*/listing.ts",
     62      "src/webgpu/util/device_pool.ts",
     63    ],
     64    "excludeInternal": true,
     65    "excludeProtected": true,
     66    "excludePrivate": true,
     67    "validation": {
     68      "invalidLink": true,
     69      "notExported": false,
     70    },
     71    "readme": "./docs/helper_index.txt",
     72    "out": "docs/tsdoc/"
     73  }
     74 }