diff --git a/.gitignore b/.gitignore index 48a3822b95..d3473e576e 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,7 @@ eggs/ lib64/ parts/ dist/ +out/ sdist/ var/ wheels/ diff --git a/packages/tsconfig/LICENSE.txt b/packages/tsconfig/LICENSE.txt new file mode 100644 index 0000000000..33b9c1516e --- /dev/null +++ b/packages/tsconfig/LICENSE.txt @@ -0,0 +1,18 @@ +The MIT License (MIT) + +Copyright (c) 2025 Authentik Security, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, +sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT +NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES +OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/tsconfig/README.md b/packages/tsconfig/README.md new file mode 100644 index 0000000000..ba5001b212 --- /dev/null +++ b/packages/tsconfig/README.md @@ -0,0 +1,6 @@ +# `@goauthentik/tsconfig` + +This package contains the TypeScript configuration used by authentik TypeScript projects. + +While it is possible to use this configuration outside of our projects, +you may find that it is not as useful as other popular configurations. diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json new file mode 100644 index 0000000000..11941efeab --- /dev/null +++ b/packages/tsconfig/package.json @@ -0,0 +1,18 @@ +{ + "name": "@goauthentik/tsconfig", + "version": "1.0.0", + "description": "authentik's s base TypeScript configuration.", + "keywords": [ + "tsconfig", + "typescript" + ], + "license": "MIT", + "type": "module", + "main": "tsconfig.json", + "engines": { + "node": ">=20.11" + }, + "publishConfig": { + "access": "public" + } +} diff --git a/packages/tsconfig/tsconfig.json b/packages/tsconfig/tsconfig.json new file mode 100644 index 0000000000..2f3f1e9584 --- /dev/null +++ b/packages/tsconfig/tsconfig.json @@ -0,0 +1,29 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "compilerOptions": { + "alwaysStrict": true, + "baseUrl": ".", + "composite": true, + "declaration": true, + "declarationMap": true, + "esModuleInterop": false, + "isolatedModules": true, + "incremental": true, + "jsx": "react-jsx", + "lib": ["ESNext"], + "module": "NodeNext", + "moduleResolution": "NodeNext", + "newLine": "lf", + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": false, + "outDir": "${configDir}/out", + "pretty": true, + "skipDefaultLibCheck": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true, + "noUncheckedIndexedAccess": true, + "target": "ESNext", + "useUnknownInCatchVariables": true + } +}