Skip to content

Commit

Permalink
Merge pull request #19346 from storybookjs/tech/tsconfig-improvement
Browse files Browse the repository at this point in the history
improve the tsconfig
  • Loading branch information
ndelangen authored Oct 4, 2022
2 parents 7f090ea + 54383d9 commit 9f56f8e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion code/addons/storyshots/storyshots-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"experimentalDecorators": true,
"declaration": true,
"jsx": "preserve",
"skipLibCheck": true,
Expand Down
1 change: 0 additions & 1 deletion code/examples/vue-cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
Expand Down
2 changes: 2 additions & 0 deletions code/frameworks/angular/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"target": "ES2020",
"module": "CommonJS",
"lib": ["es2020", "dom"],
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"outDir": "dist",
"types": ["node"],
"skipLibCheck": true,
Expand Down
1 change: 0 additions & 1 deletion code/lib/core-common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"emitDecoratorMetadata": false,
"strict": true
},
"include": ["src/**/*"],
Expand Down
2 changes: 0 additions & 2 deletions code/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
"incremental": false,
"noImplicitAny": true,
"forceConsistentCasingInFileNames": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"jsx": "react",
"moduleResolution": "Node",
"target": "ES2020",
Expand Down
15 changes: 7 additions & 8 deletions scripts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"compileOnSave": false,

"compilerOptions": {
"baseUrl": ".",
"incremental": false,
"noImplicitAny": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": false,
"jsx": "react",
"moduleResolution": "Node",
"target": "ES2020",
Expand All @@ -20,8 +17,6 @@
"dom",
"esnext"
],


"types": [
"node",
"jest"
Expand All @@ -35,7 +30,9 @@
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"paths": {
"verdaccio": ["./typings.d.ts"]
"verdaccio": [
"./typings.d.ts"
]
}
},
"exclude": [
Expand All @@ -48,7 +45,9 @@
"**/*.test.ts",
"**/setup-jest.ts"
],
"include": ["./**/*"],
"include": [
"./**/*"
],
"ts-node": {
"transpileOnly": true,
"files": true,
Expand All @@ -58,4 +57,4 @@
]
}
}
}
}

0 comments on commit 9f56f8e

Please sign in to comment.