From ec1b64d037dc14fdddec065f91a91cb08a0b6aeb Mon Sep 17 00:00:00 2001 From: Antonette Caldwell Date: Wed, 1 Nov 2023 19:55:59 -0500 Subject: [PATCH] feat: create tsconfig package --- package.json | 1 + packages/tsconfig/README.md | 1 + packages/tsconfig/base.json | 21 +++++++++++++++++++++ packages/tsconfig/package.json | 7 +++++++ packages/tsconfig/react-app.json | 18 ++++++++++++++++++ packages/tsconfig/react-library.json | 12 ++++++++++++ yarn.lock | 7 +++++++ 7 files changed, 67 insertions(+) create mode 100644 packages/tsconfig/README.md create mode 100644 packages/tsconfig/base.json create mode 100644 packages/tsconfig/package.json create mode 100644 packages/tsconfig/react-app.json create mode 100644 packages/tsconfig/react-library.json diff --git a/package.json b/package.json index fcc1e9cd..4cf38bc4 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "lint-staged": "^14.0.1", "prettier": "^3.0.3", "prettier-plugin-organize-imports": "^3.2.3", + "tsconfig": "workspace:^", "typescript": "^5.2.2" }, "packageManager": "yarn@3.6.3", diff --git a/packages/tsconfig/README.md b/packages/tsconfig/README.md new file mode 100644 index 00000000..c953e068 --- /dev/null +++ b/packages/tsconfig/README.md @@ -0,0 +1 @@ +# tsconfig diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json new file mode 100644 index 00000000..1c5c44b3 --- /dev/null +++ b/packages/tsconfig/base.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "display": "Default", + "compilerOptions": { + "composite": false, + "declaration": true, + "declarationMap": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "inlineSources": false, + "isolatedModules": true, + "moduleResolution": "node", + "noUnusedLocals": false, + "noUnusedParameters": false, + "preserveWatchOutput": true, + "skipLibCheck": true, + "strict": true + }, + "exclude": ["node_modules"] + } + \ No newline at end of file diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json new file mode 100644 index 00000000..9bd06bce --- /dev/null +++ b/packages/tsconfig/package.json @@ -0,0 +1,7 @@ +{ + "name": "tsconfig", + "version": "0.0.0", + "private": true, + "license": "MIT", + "packageManager": "yarn@3.6.3" +} diff --git a/packages/tsconfig/react-app.json b/packages/tsconfig/react-app.json new file mode 100644 index 00000000..032dbf2b --- /dev/null +++ b/packages/tsconfig/react-app.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "display": "Next.js", + "extends": "./base.json", + "compilerOptions": { + "allowJs": true, + "declaration": false, + "declarationMap": false, + "incremental": true, + "jsx": "preserve", + "lib": ["dom", "dom.iterable", "esnext"], + "module": "esnext", + "noEmit": true, + "resolveJsonModule": true, + "target": "es5" + } + } + \ No newline at end of file diff --git a/packages/tsconfig/react-library.json b/packages/tsconfig/react-library.json new file mode 100644 index 00000000..2275c897 --- /dev/null +++ b/packages/tsconfig/react-library.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "display": "React Library", + "extends": "./base.json", + "compilerOptions": { + "jsx": "react-jsx", + "lib": ["dom", "ES2015"], + "module": "ESNext", + "target": "es6" + } + } + \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 8d36704e..8b05fffb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15436,6 +15436,7 @@ __metadata: lint-staged: ^14.0.1 prettier: ^3.0.3 prettier-plugin-organize-imports: ^3.2.3 + tsconfig: "workspace:^" typescript: ^5.2.2 languageName: unknown linkType: soft @@ -16239,6 +16240,12 @@ __metadata: languageName: node linkType: hard +"tsconfig@workspace:^, tsconfig@workspace:packages/tsconfig": + version: 0.0.0-use.local + resolution: "tsconfig@workspace:packages/tsconfig" + languageName: unknown + linkType: soft + "tslib@npm:^1.13.0, tslib@npm:^1.8.1": version: 1.14.1 resolution: "tslib@npm:1.14.1"