mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-18 15:47:57 +01:00
9c1e2ebd67
* Use typescript-strict-plugin to iteratively turn on strict * Add strict testing to pipeline Can be executed locally through either `npm run test:types` for full type checking including spec files, or `npx tsc-strict` for only tsconfig.json included files. * turn on strict for scripts directory * Use plugin for all tsconfigs in monorepo vscode is capable of executing tsc with plugins, but uses the most relevant tsconfig to do so. If the plugin is not a part of that config, it is skipped and developers get no feedback of strict compile time issues. These updates remedy that at the cost of slightly more complex removal of the plugin when the time comes. * remove plugin from configs that extend one that already has it * Update workspace settings to honor strict plugin * Apply strict-plugin to native message test runner * Update vscode workspace to use root tsc version * `./node_modules/.bin/update-strict-comments` 🤖 This is a one-time operation. All future files should adhere to strict type checking. * Add fixme to `ts-strict-ignore` comments * `update-strict-comments` 🤖 repeated for new merge files
70 lines
2.6 KiB
JSON
70 lines
2.6 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"strict": false,
|
|
"pretty": true,
|
|
"moduleResolution": "node",
|
|
"noImplicitAny": true,
|
|
"target": "ES2016",
|
|
"module": "ES2020",
|
|
"lib": ["es5", "es6", "es7", "dom", "ES2021"],
|
|
"sourceMap": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"declaration": false,
|
|
"outDir": "dist",
|
|
"baseUrl": ".",
|
|
"resolveJsonModule": true,
|
|
"paths": {
|
|
"@bitwarden/admin-console/common": ["./libs/admin-console/src/common"],
|
|
"@bitwarden/angular/*": ["./libs/angular/src/*"],
|
|
"@bitwarden/auth/common": ["./libs/auth/src/common"],
|
|
"@bitwarden/auth/angular": ["./libs/auth/src/angular"],
|
|
"@bitwarden/billing": ["./libs/billing/src"],
|
|
"@bitwarden/common/*": ["./libs/common/src/*"],
|
|
"@bitwarden/components": ["./libs/components/src"],
|
|
"@bitwarden/generator-components": ["./libs/tools/generator/components/src"],
|
|
"@bitwarden/generator-core": ["./libs/tools/generator/core/src"],
|
|
"@bitwarden/generator-history": ["./libs/tools/generator/extensions/history/src"],
|
|
"@bitwarden/generator-legacy": ["./libs/tools/generator/extensions/legacy/src"],
|
|
"@bitwarden/generator-navigation": ["./libs/tools/generator/extensions/navigation/src"],
|
|
"@bitwarden/vault-export-core": ["./libs/tools/export/vault-export/vault-export-core/src"],
|
|
"@bitwarden/vault-export-ui": ["./libs/tools/export/vault-export/vault-export-ui/src"],
|
|
"@bitwarden/importer/core": ["./libs/importer/src"],
|
|
"@bitwarden/importer/ui": ["./libs/importer/src/components"],
|
|
"@bitwarden/key-management": ["./libs/key-management/src"],
|
|
"@bitwarden/platform": ["./libs/platform/src"],
|
|
"@bitwarden/send-ui": ["./libs/tools/send/send-ui/src"],
|
|
"@bitwarden/tools-card": ["./libs/tools/card/src"],
|
|
"@bitwarden/node/*": ["./libs/node/src/*"],
|
|
"@bitwarden/web-vault/*": ["./apps/web/src/*"],
|
|
"@bitwarden/vault": ["./libs/vault/src"],
|
|
"@bitwarden/bit-common/*": ["./bitwarden_license/bit-common/src/*"]
|
|
},
|
|
"plugins": [
|
|
{
|
|
"transform": "typescript-transform-paths"
|
|
},
|
|
{
|
|
"name": "typescript-strict-plugin"
|
|
}
|
|
],
|
|
"useDefineForClassFields": false
|
|
},
|
|
"include": [
|
|
"apps/web/src/**/*",
|
|
"apps/browser/src/**/*",
|
|
"libs/*/src/**/*",
|
|
"libs/tools/send/**/src/**/*",
|
|
"libs/tools/card/src/**/*",
|
|
"bitwarden_license/bit-web/src/**/*",
|
|
"bitwarden_license/bit-common/src/**/*"
|
|
],
|
|
"exclude": [
|
|
"apps/web/src/**/*.spec.ts",
|
|
"apps/browser/src/**/*.spec.ts",
|
|
"libs/*/src/**/*.spec.ts",
|
|
"**/*.spec-util.ts"
|
|
]
|
|
}
|