Skip to content

Commit

Permalink
feat(tsconfig): update config
Browse files Browse the repository at this point in the history
  • Loading branch information
tszhong0411 committed May 22, 2024
1 parent 6ba2128 commit 98bf3c7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-maps-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tszhong0411/tsconfig": patch
---

update config
4 changes: 2 additions & 2 deletions packages/tsconfig/nextjs.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"jsx": "preserve",
"plugins": [{ "name": "next" }]
"plugins": [{ "name": "next" }],
"jsx": "preserve"
},
"display": "Next.js",
"extends": "./base.json"
Expand Down
5 changes: 3 additions & 2 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"files": [
"base.json",
"nextjs.json"
"nextjs.json",
"react-library.json"
],
"peerDependencies": {
"typescript": "5.x"
Expand All @@ -23,6 +24,6 @@
"access": "public"
},
"lint-staged": {
"*.{json,md}": "prettier --cache --write"
"*.{js,jsx,ts,tsx,json,md,mdx}": "prettier --cache --write"
}
}
8 changes: 8 additions & 0 deletions packages/tsconfig/react-library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"jsx": "react-jsx"
},
"display": "React Library",
"extends": "./base.json"
}

0 comments on commit 98bf3c7

Please sign in to comment.