mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
fadc14eddc
* web: Fix stale clipboard tokens, untranslated labels. * Fix tooltip. * Fix type error. * Update types. * Fix types. Clean up composite. * Fix label names. * Fix broken HTML. * Fix labels, formatters. * Clean up properties, lifecyle.
86 lines
2.5 KiB
JSON
86 lines
2.5 KiB
JSON
// @file TSConfig used by the web package during development.
|
|
{
|
|
"extends": "@goauthentik/tsconfig",
|
|
"compilerOptions": {
|
|
"ignoreDeprecations": "6.0",
|
|
"composite": true,
|
|
"types": ["node"],
|
|
"checkJs": true,
|
|
"allowJs": true,
|
|
"resolveJsonModule": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"emitDeclarationOnly": true,
|
|
"experimentalDecorators": true,
|
|
// See https://lit.dev/docs/components/properties/
|
|
"useDefineForClassFields": false,
|
|
"target": "esnext",
|
|
"module": "preserve",
|
|
"moduleResolution": "bundler",
|
|
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
|
|
// TODO: We should enable this when when we're ready to enforce it.
|
|
"noUncheckedIndexedAccess": false,
|
|
"plugins": [
|
|
// #region Lit
|
|
{
|
|
"name": "ts-lit-plugin",
|
|
"strict": true,
|
|
"rules": {
|
|
"no-incompatible-type-binding": "off"
|
|
},
|
|
|
|
"globalAttributes": [
|
|
//#region Testing
|
|
|
|
"name",
|
|
|
|
//#endregion
|
|
|
|
//#region ARIA
|
|
|
|
"aria-description",
|
|
"inert",
|
|
"enterkeyhint",
|
|
|
|
//#endregion
|
|
|
|
//#region Popover
|
|
|
|
"popover",
|
|
"popovertarget",
|
|
"popovertargetaction"
|
|
|
|
//#endregion
|
|
]
|
|
},
|
|
{
|
|
"name": "@genesiscommunitysuccess/custom-elements-lsp",
|
|
"designSystemPrefix": "ak-",
|
|
"parser": {
|
|
"timeout": 2000
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"exclude": [
|
|
// ---
|
|
"**/out/**/*",
|
|
"**/dist/**/*",
|
|
"storybook-static",
|
|
"src/**/*.test.ts",
|
|
"./tests",
|
|
// Workspace subpackages each own their tsconfig and build. Including
|
|
// them here pulls ~1k files (notably the OpenAPI client in
|
|
// packages/client-ts) into every `tsc -p .` for no benefit.
|
|
"packages/client-ts",
|
|
"packages/sfe",
|
|
// TODO: @lit/localize-tools v0.8.0 has a nullish coalescing typing error.
|
|
// Remove when we upgrade past that.
|
|
"scripts/pseudolocalize.mjs",
|
|
"scripts/build-locales.mjs",
|
|
|
|
// TODO: Remove after monorepo cleanup.
|
|
"src/**/*.comp.ts"
|
|
]
|
|
}
|