Skip to content

Commit

Permalink
feat(tsconfig): use stricter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed Feb 14, 2024
1 parent ef657a8 commit 8352171
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 10 deletions.
3 changes: 2 additions & 1 deletion packages/api/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig/isomorphic.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
"outDir": "./dist",
"noUnusedLocals": false
},
"include": ["./src"]
}
3 changes: 2 additions & 1 deletion packages/api/tsconfig.tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"rootDir": ".",
"types": ["jest", "./jest.d.ts"],
"noEmit": true
"noEmit": true,
"noUnusedLocals": false
},
"include": ["./tests"]
}
3 changes: 2 additions & 1 deletion packages/bsky/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig/node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
"outDir": "./dist",
"noUnusedLocals": false
},
"include": ["./src"]
}
3 changes: 2 additions & 1 deletion packages/bsky/tsconfig.tests.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig/tests.json",
"compilerOptions": {
"rootDir": "."
"rootDir": ".",
"noUnusedLocals": false
},
"include": ["./tests"]
}
3 changes: 2 additions & 1 deletion packages/ozone/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig/node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
"outDir": "./dist",
"noUnusedLocals": false
},
"include": ["./src"]
}
3 changes: 2 additions & 1 deletion packages/ozone/tsconfig.tests.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig/tests.json",
"compilerOptions": {
"rootDir": "."
"rootDir": ".",
"noUnusedLocals": false
},
"include": ["./tests"]
}
3 changes: 2 additions & 1 deletion packages/pds/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig/node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
"outDir": "./dist",
"noUnusedLocals": false
},
"include": ["./src"]
}
3 changes: 2 additions & 1 deletion packages/pds/tsconfig.tests.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig/tests.json",
"compilerOptions": {
"rootDir": "."
"rootDir": ".",
"noUnusedLocals": false
},
"include": ["./tests"]
}
10 changes: 8 additions & 2 deletions tsconfig/base.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"strict": true,
"allowUnusedLabels": false,
"allowUnreachableCode": false,
"exactOptionalPropertyTypes": false,
"noFallthroughCasesInSwitch": false,
"noUnusedLocals": true,
"noUnusedParameters": false,

"declaration": true,
"noImplicitAny": false,
"removeComments": true,
Expand All @@ -12,8 +20,6 @@
"sourceMap": true,
"module": "commonjs",
"jsx": "preserve",
"strict": true,
"strictPropertyInitialization": false,
"moduleResolution": "node",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
Expand Down

0 comments on commit 8352171

Please sign in to comment.