Skip to content

Commit

Permalink
feat: create tsconfig package (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
nebula-aac authored Nov 2, 2023
1 parent 0c92055 commit 073f5d3
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]",
Expand Down
1 change: 1 addition & 0 deletions packages/tsconfig/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# tsconfig
21 changes: 21 additions & 0 deletions packages/tsconfig/base.json
Original file line number Diff line number Diff line change
@@ -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"]
}

7 changes: 7 additions & 0 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "tsconfig",
"version": "0.0.0",
"private": true,
"license": "MIT",
"packageManager": "[email protected]"
}
18 changes: 18 additions & 0 deletions packages/tsconfig/react-app.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

12 changes: 12 additions & 0 deletions packages/tsconfig/react-library.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 073f5d3

Please sign in to comment.