From 4820dfbb62f511e3663faff7c689adb927d9e92d Mon Sep 17 00:00:00 2001 From: "T. R. Bernstein" <137705289+trbernstein@users.noreply.github.com> Date: Mon, 24 Feb 2025 22:02:04 +0100 Subject: [PATCH] feat(pkg): Add shared TypeScript config --- cog.toml | 1 + packages/typescript-config/base.json | 36 +++++++++++++++++++++++++ packages/typescript-config/package.json | 8 ++++++ 3 files changed, 45 insertions(+) create mode 100644 packages/typescript-config/base.json create mode 100644 packages/typescript-config/package.json diff --git a/cog.toml b/cog.toml index 9d625af..eeffabb 100644 --- a/cog.toml +++ b/cog.toml @@ -37,3 +37,4 @@ authors = [ [bump_profiles] [packages] +typescript-config = { path = "packages/typescript-config" } diff --git a/packages/typescript-config/base.json b/packages/typescript-config/base.json new file mode 100644 index 0000000..4cfe304 --- /dev/null +++ b/packages/typescript-config/base.json @@ -0,0 +1,36 @@ +{ + "compilerOptions": { + "alwaysStrict": true, + "exactOptionalPropertyTypes": true, + "noFallthroughCasesInSwitch": true, + "noImplicitAny": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "noPropertyAccessFromIndexSignature": true, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "strict": true, + "strictBindCallApply": true, + "strictBuiltinIteratorReturn": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "strictPropertyInitialization": true, + "useUnknownInCatchVariables": true, + "module": "nodenext", + "moduleResolution": "nodenext", + "noUncheckedSideEffectImports": true, + "resolveJsonModule": true, + "newLine": "LF", + "removeComments": true, + "allowSyntheticDefaultImports": false, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + "verbatimModuleSyntax": true, + "target": "ES2023", + "useDefineForClassFields": true, + "skipLibCheck": true + } +} diff --git a/packages/typescript-config/package.json b/packages/typescript-config/package.json new file mode 100644 index 0000000..fed5249 --- /dev/null +++ b/packages/typescript-config/package.json @@ -0,0 +1,8 @@ +{ + "name": "@tabshift/typescript-config", + "description": "Shared TypeScript config of Tabshift", + "version": "1.0.0", + "files": ["*.json"], + "author": "T. R. Bernstein ", + "license": "EUPL-1.2" +}