Skip to content

Commit

Permalink
fix: TypeScript configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Nov 15, 2024
1 parent 8c453a3 commit 0c584e7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"./eslint/styles/prefer-interface": "./eslint/styles/prefer-interface.js",
"./prettier": "./prettier/base.js",
"./semantic-release": "./semantic-release/base.js",
"./typescript": "./typescript/base.js"
"./typescript": "./typescript/base.json",
"./typescript/lib": "./typescript/lib.json"
},
"files": [
"eslint",
Expand Down Expand Up @@ -105,7 +106,7 @@
"typescript": "5.6.3"
},
"peerDependencies": {
"eslint": "^9.10.0"
"eslint": "^9.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./typescript/base.json",
"include": ["eslint", "prettier", "typescript"],
"include": ["eslint", "prettier", "typescript", "semantic-release"],
"exclude": [
"eslint/presets/typescript.test",
"eslint/presets/typescript-react.test",
Expand Down
1 change: 1 addition & 0 deletions typescript/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"lib": ["DOM", "ESNext"],
"module": "NodeNext",
"noEmit": true, // If code should be emitted, it's recommended to create a separate tsconfig.build.json file
"noImplicitOverride": true,
Expand Down
7 changes: 7 additions & 0 deletions typescript/lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./typescript.json",
"compilerOptions": {
"sourceMap": true,
"declaration": true
}
}

0 comments on commit 0c584e7

Please sign in to comment.