diff --git a/addons/a11y/tsconfig.json b/addons/a11y/tsconfig.json
index 8319c147bd1f..a7db239dea4e 100644
--- a/addons/a11y/tsconfig.json
+++ b/addons/a11y/tsconfig.json
@@ -2,7 +2,10 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "jest"],
+ "types": [
+ "webpack-env",
+ "jest"
+ ],
"forceConsistentCasingInFileNames": true,
"strict": true,
"noUnusedLocals": true,
@@ -10,7 +13,9 @@
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -19,4 +24,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/actions/tsconfig.json b/addons/actions/tsconfig.json
index 78bae36b0b11..0baf78294f75 100644
--- a/addons/actions/tsconfig.json
+++ b/addons/actions/tsconfig.json
@@ -2,9 +2,14 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "jest"]
+ "types": [
+ "webpack-env",
+ "jest"
+ ]
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -13,4 +18,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/backgrounds/tsconfig.json b/addons/backgrounds/tsconfig.json
index d1ee4fc75941..36ca4e1d3033 100644
--- a/addons/backgrounds/tsconfig.json
+++ b/addons/backgrounds/tsconfig.json
@@ -2,7 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env"]
+ "types": [
+ "webpack-env"
+ ]
},
"include": [
"src/**/*"
@@ -15,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/controls/tsconfig.json b/addons/controls/tsconfig.json
index dfc6803adda9..64141341cff1 100644
--- a/addons/controls/tsconfig.json
+++ b/addons/controls/tsconfig.json
@@ -2,9 +2,15 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "jest", "node"]
+ "types": [
+ "webpack-env",
+ "jest",
+ "node"
+ ]
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -13,4 +19,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/docs/src/frameworks/angular/__testfixtures__/doc-button/tsconfig.json b/addons/docs/src/frameworks/angular/__testfixtures__/doc-button/tsconfig.json
index ced6b7ae2f7c..fdb47c28b38c 100644
--- a/addons/docs/src/frameworks/angular/__testfixtures__/doc-button/tsconfig.json
+++ b/addons/docs/src/frameworks/angular/__testfixtures__/doc-button/tsconfig.json
@@ -3,5 +3,7 @@
"compilerOptions": {
"rootDir": "."
},
- "include": ["./*.ts"]
-}
+ "include": [
+ "./*.ts"
+ ]
+}
\ No newline at end of file
diff --git a/addons/docs/tsconfig.json b/addons/docs/tsconfig.json
index 38e42ca13fd5..e2fef14ffcbb 100644
--- a/addons/docs/tsconfig.json
+++ b/addons/docs/tsconfig.json
@@ -2,9 +2,15 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "jest", "node"]
+ "types": [
+ "webpack-env",
+ "jest",
+ "node"
+ ]
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/__tests__/**/*",
@@ -12,4 +18,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/essentials/tsconfig.json b/addons/essentials/tsconfig.json
index dfc6803adda9..64141341cff1 100644
--- a/addons/essentials/tsconfig.json
+++ b/addons/essentials/tsconfig.json
@@ -2,9 +2,15 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "jest", "node"]
+ "types": [
+ "webpack-env",
+ "jest",
+ "node"
+ ]
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -13,4 +19,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/interactions/tsconfig.json b/addons/interactions/tsconfig.json
index d1ee4fc75941..36ca4e1d3033 100644
--- a/addons/interactions/tsconfig.json
+++ b/addons/interactions/tsconfig.json
@@ -2,7 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env"]
+ "types": [
+ "webpack-env"
+ ]
},
"include": [
"src/**/*"
@@ -15,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/jest/tsconfig.json b/addons/jest/tsconfig.json
index 858d1aa0ffb9..0baf78294f75 100644
--- a/addons/jest/tsconfig.json
+++ b/addons/jest/tsconfig.json
@@ -2,7 +2,10 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "jest"]
+ "types": [
+ "webpack-env",
+ "jest"
+ ]
},
"include": [
"src/**/*"
@@ -15,4 +18,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/links/tsconfig.json b/addons/links/tsconfig.json
index 152b58ee30e1..0d8e23c22271 100644
--- a/addons/links/tsconfig.json
+++ b/addons/links/tsconfig.json
@@ -2,7 +2,10 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "@testing-library/jest-dom"]
+ "types": [
+ "webpack-env",
+ "@testing-library/jest-dom"
+ ]
},
"include": [
"src/**/*"
@@ -15,4 +18,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/measure/tsconfig.json b/addons/measure/tsconfig.json
index d1ee4fc75941..36ca4e1d3033 100644
--- a/addons/measure/tsconfig.json
+++ b/addons/measure/tsconfig.json
@@ -2,7 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env"]
+ "types": [
+ "webpack-env"
+ ]
},
"include": [
"src/**/*"
@@ -15,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/outline/tsconfig.json b/addons/outline/tsconfig.json
index d1ee4fc75941..36ca4e1d3033 100644
--- a/addons/outline/tsconfig.json
+++ b/addons/outline/tsconfig.json
@@ -2,7 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env"]
+ "types": [
+ "webpack-env"
+ ]
},
"include": [
"src/**/*"
@@ -15,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/storyshots/storyshots-core/tsconfig.json b/addons/storyshots/storyshots-core/tsconfig.json
index 4a91c980e54c..7a017b1cacdc 100644
--- a/addons/storyshots/storyshots-core/tsconfig.json
+++ b/addons/storyshots/storyshots-core/tsconfig.json
@@ -8,4 +8,4 @@
"experimentalDecorators": true,
"declaration": true
}
-}
+}
\ No newline at end of file
diff --git a/addons/storyshots/storyshots-puppeteer/tsconfig.json b/addons/storyshots/storyshots-puppeteer/tsconfig.json
index 4f09fb307c20..e67c03a4c4f4 100644
--- a/addons/storyshots/storyshots-puppeteer/tsconfig.json
+++ b/addons/storyshots/storyshots-puppeteer/tsconfig.json
@@ -2,7 +2,10 @@
"extends": "../../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "node"],
+ "types": [
+ "webpack-env",
+ "node"
+ ],
"declaration": true
},
"include": [
@@ -11,4 +14,4 @@
"exclude": [
"src/__tests__/**/*"
]
-}
+}
\ No newline at end of file
diff --git a/addons/storysource/tsconfig.json b/addons/storysource/tsconfig.json
index d1ee4fc75941..36ca4e1d3033 100644
--- a/addons/storysource/tsconfig.json
+++ b/addons/storysource/tsconfig.json
@@ -2,7 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env"]
+ "types": [
+ "webpack-env"
+ ]
},
"include": [
"src/**/*"
@@ -15,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/toolbars/tsconfig.json b/addons/toolbars/tsconfig.json
index 78bae36b0b11..0baf78294f75 100644
--- a/addons/toolbars/tsconfig.json
+++ b/addons/toolbars/tsconfig.json
@@ -2,9 +2,14 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "jest"]
+ "types": [
+ "webpack-env",
+ "jest"
+ ]
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -13,4 +18,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/addons/viewport/tsconfig.json b/addons/viewport/tsconfig.json
index d1ee4fc75941..36ca4e1d3033 100644
--- a/addons/viewport/tsconfig.json
+++ b/addons/viewport/tsconfig.json
@@ -2,7 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env"]
+ "types": [
+ "webpack-env"
+ ]
},
"include": [
"src/**/*"
@@ -15,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/app/angular/src/server/__mocks-ng-workspace__/minimal-config/tsconfig.json b/app/angular/src/server/__mocks-ng-workspace__/minimal-config/tsconfig.json
index ed46a09da328..7baff160a40c 100644
--- a/app/angular/src/server/__mocks-ng-workspace__/minimal-config/tsconfig.json
+++ b/app/angular/src/server/__mocks-ng-workspace__/minimal-config/tsconfig.json
@@ -8,6 +8,9 @@
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es5",
- "lib": ["es2017", "dom"]
+ "lib": [
+ "es2017",
+ "dom"
+ ]
}
-}
+}
\ No newline at end of file
diff --git a/app/angular/src/server/__mocks-ng-workspace__/some-config/tsconfig.json b/app/angular/src/server/__mocks-ng-workspace__/some-config/tsconfig.json
index ed46a09da328..7baff160a40c 100644
--- a/app/angular/src/server/__mocks-ng-workspace__/some-config/tsconfig.json
+++ b/app/angular/src/server/__mocks-ng-workspace__/some-config/tsconfig.json
@@ -8,6 +8,9 @@
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es5",
- "lib": ["es2017", "dom"]
+ "lib": [
+ "es2017",
+ "dom"
+ ]
}
-}
+}
\ No newline at end of file
diff --git a/app/angular/src/server/__mocks-ng-workspace__/with-angularBrowserTarget/tsconfig.json b/app/angular/src/server/__mocks-ng-workspace__/with-angularBrowserTarget/tsconfig.json
index ed46a09da328..7baff160a40c 100644
--- a/app/angular/src/server/__mocks-ng-workspace__/with-angularBrowserTarget/tsconfig.json
+++ b/app/angular/src/server/__mocks-ng-workspace__/with-angularBrowserTarget/tsconfig.json
@@ -8,6 +8,9 @@
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es5",
- "lib": ["es2017", "dom"]
+ "lib": [
+ "es2017",
+ "dom"
+ ]
}
-}
+}
\ No newline at end of file
diff --git a/app/angular/src/server/__mocks-ng-workspace__/with-lib/tsconfig.json b/app/angular/src/server/__mocks-ng-workspace__/with-lib/tsconfig.json
index ed46a09da328..7baff160a40c 100644
--- a/app/angular/src/server/__mocks-ng-workspace__/with-lib/tsconfig.json
+++ b/app/angular/src/server/__mocks-ng-workspace__/with-lib/tsconfig.json
@@ -8,6 +8,9 @@
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es5",
- "lib": ["es2017", "dom"]
+ "lib": [
+ "es2017",
+ "dom"
+ ]
}
-}
+}
\ No newline at end of file
diff --git a/app/angular/src/server/__mocks-ng-workspace__/with-nx-workspace/tsconfig.json b/app/angular/src/server/__mocks-ng-workspace__/with-nx-workspace/tsconfig.json
index 4c19c82b6bab..524035cf5290 100644
--- a/app/angular/src/server/__mocks-ng-workspace__/with-nx-workspace/tsconfig.json
+++ b/app/angular/src/server/__mocks-ng-workspace__/with-nx-workspace/tsconfig.json
@@ -1,5 +1,7 @@
{
- "include": ["./src"],
+ "include": [
+ "./src"
+ ],
"compilerOptions": {
"sourceMap": true,
"moduleResolution": "node",
@@ -9,6 +11,9 @@
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es5",
- "lib": ["es2017", "dom"]
+ "lib": [
+ "es2017",
+ "dom"
+ ]
}
-}
+}
\ No newline at end of file
diff --git a/app/angular/src/server/__mocks-ng-workspace__/with-nx/tsconfig.json b/app/angular/src/server/__mocks-ng-workspace__/with-nx/tsconfig.json
index 4c19c82b6bab..524035cf5290 100644
--- a/app/angular/src/server/__mocks-ng-workspace__/with-nx/tsconfig.json
+++ b/app/angular/src/server/__mocks-ng-workspace__/with-nx/tsconfig.json
@@ -1,5 +1,7 @@
{
- "include": ["./src"],
+ "include": [
+ "./src"
+ ],
"compilerOptions": {
"sourceMap": true,
"moduleResolution": "node",
@@ -9,6 +11,9 @@
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es5",
- "lib": ["es2017", "dom"]
+ "lib": [
+ "es2017",
+ "dom"
+ ]
}
-}
+}
\ No newline at end of file
diff --git a/app/angular/src/server/__mocks-ng-workspace__/with-options-styles/tsconfig.json b/app/angular/src/server/__mocks-ng-workspace__/with-options-styles/tsconfig.json
index ed46a09da328..7baff160a40c 100644
--- a/app/angular/src/server/__mocks-ng-workspace__/with-options-styles/tsconfig.json
+++ b/app/angular/src/server/__mocks-ng-workspace__/with-options-styles/tsconfig.json
@@ -8,6 +8,9 @@
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es5",
- "lib": ["es2017", "dom"]
+ "lib": [
+ "es2017",
+ "dom"
+ ]
}
-}
+}
\ No newline at end of file
diff --git a/app/angular/src/server/__mocks-ng-workspace__/without-projects-entry/tsconfig.json b/app/angular/src/server/__mocks-ng-workspace__/without-projects-entry/tsconfig.json
index ed46a09da328..7baff160a40c 100644
--- a/app/angular/src/server/__mocks-ng-workspace__/without-projects-entry/tsconfig.json
+++ b/app/angular/src/server/__mocks-ng-workspace__/without-projects-entry/tsconfig.json
@@ -8,6 +8,9 @@
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es5",
- "lib": ["es2017", "dom"]
+ "lib": [
+ "es2017",
+ "dom"
+ ]
}
-}
+}
\ No newline at end of file
diff --git a/app/angular/src/server/__mocks-ng-workspace__/without-tsConfig/tsconfig.json b/app/angular/src/server/__mocks-ng-workspace__/without-tsConfig/tsconfig.json
index ed46a09da328..7baff160a40c 100644
--- a/app/angular/src/server/__mocks-ng-workspace__/without-tsConfig/tsconfig.json
+++ b/app/angular/src/server/__mocks-ng-workspace__/without-tsConfig/tsconfig.json
@@ -8,6 +8,9 @@
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es5",
- "lib": ["es2017", "dom"]
+ "lib": [
+ "es2017",
+ "dom"
+ ]
}
-}
+}
\ No newline at end of file
diff --git a/app/angular/tsconfig.json b/app/angular/tsconfig.json
index 1080df664bbb..91d19e02f355 100644
--- a/app/angular/tsconfig.json
+++ b/app/angular/tsconfig.json
@@ -3,10 +3,16 @@
"compileOnSave": false,
"compilerOptions": {
"outDir": "dist",
- "types": ["webpack-env", "node"],
+ "types": [
+ "webpack-env",
+ "node"
+ ],
"rootDir": "./src",
"resolveJsonModule": true,
"allowJs": true
},
- "include": ["src/**/*", "src/**/*.json"]
-}
+ "include": [
+ "src/**/*",
+ "src/**/*.json"
+ ]
+}
\ No newline at end of file
diff --git a/app/ember/tsconfig.json b/app/ember/tsconfig.json
index bdf2e98ebb1e..21c9e27f55dd 100644
--- a/app/ember/tsconfig.json
+++ b/app/ember/tsconfig.json
@@ -2,9 +2,17 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": ".",
- "types": ["webpack-env", "node"],
+ "types": [
+ "webpack-env",
+ "node"
+ ],
"resolveJsonModule": true
},
- "include": ["src/**/*", "package.json"],
- "exclude": ["src/**/*.test.*"]
+ "include": [
+ "src/**/*",
+ "package.json"
+ ],
+ "exclude": [
+ "src/**/*.test.*"
+ ]
}
\ No newline at end of file
diff --git a/app/html/tsconfig.json b/app/html/tsconfig.json
index 13f32ad63095..77e11bbd2ab9 100644
--- a/app/html/tsconfig.json
+++ b/app/html/tsconfig.json
@@ -2,8 +2,15 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "node"]
+ "types": [
+ "webpack-env",
+ "node"
+ ]
},
- "include": ["src/**/*"],
- "exclude": ["src/__tests__/**/*"]
-}
+ "include": [
+ "src/**/*"
+ ],
+ "exclude": [
+ "src/__tests__/**/*"
+ ]
+}
\ No newline at end of file
diff --git a/app/preact/tsconfig.json b/app/preact/tsconfig.json
index 08bdb7764f76..ea47a78eb476 100644
--- a/app/preact/tsconfig.json
+++ b/app/preact/tsconfig.json
@@ -2,7 +2,10 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "node"],
+ "types": [
+ "webpack-env",
+ "node"
+ ],
"resolveJsonModule": true
},
"include": [
@@ -11,4 +14,4 @@
"exclude": [
"src/**/*.test.*"
]
-}
+}
\ No newline at end of file
diff --git a/app/react/tsconfig.json b/app/react/tsconfig.json
index 08bdb7764f76..ea47a78eb476 100644
--- a/app/react/tsconfig.json
+++ b/app/react/tsconfig.json
@@ -2,7 +2,10 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "node"],
+ "types": [
+ "webpack-env",
+ "node"
+ ],
"resolveJsonModule": true
},
"include": [
@@ -11,4 +14,4 @@
"exclude": [
"src/**/*.test.*"
]
-}
+}
\ No newline at end of file
diff --git a/app/server/tsconfig.json b/app/server/tsconfig.json
index 13f32ad63095..77e11bbd2ab9 100644
--- a/app/server/tsconfig.json
+++ b/app/server/tsconfig.json
@@ -2,8 +2,15 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "node"]
+ "types": [
+ "webpack-env",
+ "node"
+ ]
},
- "include": ["src/**/*"],
- "exclude": ["src/__tests__/**/*"]
-}
+ "include": [
+ "src/**/*"
+ ],
+ "exclude": [
+ "src/__tests__/**/*"
+ ]
+}
\ No newline at end of file
diff --git a/app/svelte/tsconfig.json b/app/svelte/tsconfig.json
index 08bdb7764f76..ea47a78eb476 100644
--- a/app/svelte/tsconfig.json
+++ b/app/svelte/tsconfig.json
@@ -2,7 +2,10 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "node"],
+ "types": [
+ "webpack-env",
+ "node"
+ ],
"resolveJsonModule": true
},
"include": [
@@ -11,4 +14,4 @@
"exclude": [
"src/**/*.test.*"
]
-}
+}
\ No newline at end of file
diff --git a/app/vue/tsconfig.json b/app/vue/tsconfig.json
index 08bdb7764f76..ea47a78eb476 100644
--- a/app/vue/tsconfig.json
+++ b/app/vue/tsconfig.json
@@ -2,7 +2,10 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "node"],
+ "types": [
+ "webpack-env",
+ "node"
+ ],
"resolveJsonModule": true
},
"include": [
@@ -11,4 +14,4 @@
"exclude": [
"src/**/*.test.*"
]
-}
+}
\ No newline at end of file
diff --git a/app/vue3/tsconfig.json b/app/vue3/tsconfig.json
index 08bdb7764f76..ea47a78eb476 100644
--- a/app/vue3/tsconfig.json
+++ b/app/vue3/tsconfig.json
@@ -2,7 +2,10 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "node"],
+ "types": [
+ "webpack-env",
+ "node"
+ ],
"resolveJsonModule": true
},
"include": [
@@ -11,4 +14,4 @@
"exclude": [
"src/**/*.test.*"
]
-}
+}
\ No newline at end of file
diff --git a/app/web-components/tsconfig.json b/app/web-components/tsconfig.json
index 13f32ad63095..77e11bbd2ab9 100644
--- a/app/web-components/tsconfig.json
+++ b/app/web-components/tsconfig.json
@@ -2,8 +2,15 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env", "node"]
+ "types": [
+ "webpack-env",
+ "node"
+ ]
},
- "include": ["src/**/*"],
- "exclude": ["src/__tests__/**/*"]
-}
+ "include": [
+ "src/**/*"
+ ],
+ "exclude": [
+ "src/__tests__/**/*"
+ ]
+}
\ No newline at end of file
diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json
index cae4f81611a5..55293e4eb488 100644
--- a/cypress/tsconfig.json
+++ b/cypress/tsconfig.json
@@ -3,9 +3,17 @@
"strict": true,
"baseUrl": "../node_modules",
"target": "es5",
- "lib": ["es2017", "dom"],
- "types": ["cypress", "node"],
+ "lib": [
+ "es2017",
+ "dom"
+ ],
+ "types": [
+ "cypress",
+ "node"
+ ],
"esModuleInterop": true
},
- "include": ["**/*.ts"]
-}
+ "include": [
+ "**/*.ts"
+ ]
+}
\ No newline at end of file
diff --git a/docs/writing-stories/play-function.md b/docs/writing-stories/play-function.md
index 5d4e20da42ab..4538ffa37318 100644
--- a/docs/writing-stories/play-function.md
+++ b/docs/writing-stories/play-function.md
@@ -30,8 +30,6 @@ Update your Storybook configuration (in `.storybook/main.js`) to include the int
-![Storybook's addon-interaction controls](./storybook-addon-interaction-controls.gif)
-
## Writing stories with the play function
Storybook's `play` functions are small code snippets that run once the story finishes rendering. Aided by the `addon-interactions`, it allows you to build component interactions and test scenarios that were impossible without user intervention. For example, if you were working on a registration form and wanted to validate it, you could write the following story with the `play` function:
@@ -212,4 +210,4 @@ By default, each interaction you write inside your `play` function will be execu
-Applying these changes to your stories can provide a performance boost and improved error handling with [`addon-interactions`](/addons/@storybook/addon-interactions/).
\ No newline at end of file
+Applying these changes to your stories can provide a performance boost and improved error handling with [`addon-interactions`](/addons/@storybook/addon-interactions/).
diff --git a/docs/writing-stories/storybook-addon-interaction-controls.gif b/docs/writing-stories/storybook-addon-interaction-controls.gif
deleted file mode 100644
index cf15dd1c103d..000000000000
Binary files a/docs/writing-stories/storybook-addon-interaction-controls.gif and /dev/null differ
diff --git a/docs/writing-tests/addon-interactions-individual-states.gif b/docs/writing-tests/addon-interactions-individual-states.gif
deleted file mode 100644
index 90e8b77d8b5b..000000000000
Binary files a/docs/writing-tests/addon-interactions-individual-states.gif and /dev/null differ
diff --git a/docs/writing-tests/addon-interactions-preview.png b/docs/writing-tests/addon-interactions-preview.png
deleted file mode 100644
index 6e88e60f84a4..000000000000
Binary files a/docs/writing-tests/addon-interactions-preview.png and /dev/null differ
diff --git a/docs/writing-tests/interaction-testing.md b/docs/writing-tests/interaction-testing.md
index 2a0d6fbf96ff..5d663d10c50f 100644
--- a/docs/writing-tests/interaction-testing.md
+++ b/docs/writing-tests/interaction-testing.md
@@ -65,16 +65,6 @@ Below is an abridged API for user-event. For more, check out the [official user-
| `type` | Writes text inside inputs, or textareas
`userEvent.type(await within(canvasElement).getByRole('my-input'),'Some text');` |
| `unhover` | Unhovers out of element
`userEvent.unhover(await within(canvasElement).getByLabelText(/Example/i));` |
-### Debugging
-
-The [`@storybook/addon-interactions`](/addons/@storybook/addon-interactions/) addon includes a set of UI controls to allow you control over the test execution flow. At any time, you can pause, resume, rewind, and step through each interaction. Also, providing you with an easy-to-use debugger for errors.
-
-![Storybook addon interactions preview](./addon-interactions-preview.png)
-
-Open your `Interactions` panel and click on an individual step to jump to the exact state of the component when the interaction was triggered.
-
-![Storybook addon interactions click steps](./addon-interactions-individual-states.gif)
-
### Permalinks for reproductions
The `play` function is executed after the story is rendered. If there’s an error, it’ll be shown in the interaction addon panel to help with debugging.
diff --git a/examples/angular-cli/.storybook/tsconfig.json b/examples/angular-cli/.storybook/tsconfig.json
index 4de48e82d32f..a490d05bc692 100644
--- a/examples/angular-cli/.storybook/tsconfig.json
+++ b/examples/angular-cli/.storybook/tsconfig.json
@@ -1,5 +1,10 @@
{
"extends": "../src/tsconfig.app.json",
- "exclude": ["../src/karma.ts", "../src/**/*.spec.ts"],
- "include": ["../src/**/*"]
-}
+ "exclude": [
+ "../src/karma.ts",
+ "../src/**/*.spec.ts"
+ ],
+ "include": [
+ "../src/**/*"
+ ]
+}
\ No newline at end of file
diff --git a/examples/angular-cli/tsconfig.json b/examples/angular-cli/tsconfig.json
index fd917221625c..c17f4d26946e 100644
--- a/examples/angular-cli/tsconfig.json
+++ b/examples/angular-cli/tsconfig.json
@@ -15,7 +15,13 @@
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es5",
- "typeRoots": ["../../node_modules/@types", "node_modules/@types"],
- "lib": ["es2017", "dom"]
+ "typeRoots": [
+ "../../node_modules/@types",
+ "node_modules/@types"
+ ],
+ "lib": [
+ "es2017",
+ "dom"
+ ]
}
-}
+}
\ No newline at end of file
diff --git a/examples/cra-ts-essentials/tsconfig.json b/examples/cra-ts-essentials/tsconfig.json
index 1f8c0c06eadf..450e0014a4ea 100644
--- a/examples/cra-ts-essentials/tsconfig.json
+++ b/examples/cra-ts-essentials/tsconfig.json
@@ -11,10 +11,16 @@
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"target": "es5",
- "types": ["jest", "node"],
- "lib": ["es2017", "dom"]
+ "types": [
+ "jest",
+ "node"
+ ],
+ "lib": [
+ "es2017",
+ "dom"
+ ]
},
"include": [
"src"
]
-}
+}
\ No newline at end of file
diff --git a/examples/cra-ts-kitchen-sink/tsconfig.json b/examples/cra-ts-kitchen-sink/tsconfig.json
index 1f8c0c06eadf..450e0014a4ea 100644
--- a/examples/cra-ts-kitchen-sink/tsconfig.json
+++ b/examples/cra-ts-kitchen-sink/tsconfig.json
@@ -11,10 +11,16 @@
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"target": "es5",
- "types": ["jest", "node"],
- "lib": ["es2017", "dom"]
+ "types": [
+ "jest",
+ "node"
+ ],
+ "lib": [
+ "es2017",
+ "dom"
+ ]
},
"include": [
"src"
]
-}
+}
\ No newline at end of file
diff --git a/examples/react-ts-webpack4/tsconfig.json b/examples/react-ts-webpack4/tsconfig.json
index 5447ee7e4d86..f14931bea613 100644
--- a/examples/react-ts-webpack4/tsconfig.json
+++ b/examples/react-ts-webpack4/tsconfig.json
@@ -6,5 +6,8 @@
"skipLibCheck": true,
"strict": true
},
- "include": ["src/*", "main.ts"]
-}
+ "include": [
+ "src/*",
+ "main.ts"
+ ]
+}
\ No newline at end of file
diff --git a/examples/react-ts/tsconfig.json b/examples/react-ts/tsconfig.json
index 167b4d55ac75..2a9856e4b65a 100644
--- a/examples/react-ts/tsconfig.json
+++ b/examples/react-ts/tsconfig.json
@@ -6,5 +6,8 @@
"skipLibCheck": true,
"strict": true
},
- "include": ["src/*", ".storybook/main.ts"]
-}
+ "include": [
+ "src/*",
+ ".storybook/main.ts"
+ ]
+}
\ No newline at end of file
diff --git a/examples/svelte-kitchen-sink/tsconfig.json b/examples/svelte-kitchen-sink/tsconfig.json
index 71816f58b0b0..c389dd4965f4 100644
--- a/examples/svelte-kitchen-sink/tsconfig.json
+++ b/examples/svelte-kitchen-sink/tsconfig.json
@@ -5,5 +5,7 @@
"skipLibCheck": true,
"strict": true
},
- "include": ["src/*"]
-}
+ "include": [
+ "src/*"
+ ]
+}
\ No newline at end of file
diff --git a/examples/vue-3-cli/tsconfig.json b/examples/vue-3-cli/tsconfig.json
index d07e92960629..7d55a5e7ab2e 100644
--- a/examples/vue-3-cli/tsconfig.json
+++ b/examples/vue-3-cli/tsconfig.json
@@ -36,4 +36,4 @@
"exclude": [
"node_modules"
]
-}
+}
\ No newline at end of file
diff --git a/examples/vue-cli/tsconfig.json b/examples/vue-cli/tsconfig.json
index 826f15ec18b8..82327aa7a934 100644
--- a/examples/vue-cli/tsconfig.json
+++ b/examples/vue-cli/tsconfig.json
@@ -24,4 +24,4 @@
"exclude": [
"**/node_modules"
]
-}
+}
\ No newline at end of file
diff --git a/examples/web-components-kitchen-sink/tsconfig.json b/examples/web-components-kitchen-sink/tsconfig.json
index c053ac1f1fe8..b0d8f2a3a9eb 100644
--- a/examples/web-components-kitchen-sink/tsconfig.json
+++ b/examples/web-components-kitchen-sink/tsconfig.json
@@ -14,4 +14,4 @@
"exclude": [
"src/**/*.stories.ts"
]
-}
+}
\ No newline at end of file
diff --git a/lib/addons/tsconfig.json b/lib/addons/tsconfig.json
index d1ee4fc75941..36ca4e1d3033 100644
--- a/lib/addons/tsconfig.json
+++ b/lib/addons/tsconfig.json
@@ -2,7 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env"]
+ "types": [
+ "webpack-env"
+ ]
},
"include": [
"src/**/*"
@@ -15,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/api/tsconfig.json b/lib/api/tsconfig.json
index 4976f77d1e9d..8b4e28f7b27c 100644
--- a/lib/api/tsconfig.json
+++ b/lib/api/tsconfig.json
@@ -3,7 +3,9 @@
"compilerOptions": {
"rootDir": "./src"
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -12,5 +14,8 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
],
- "lib": ["es2017", "dom"]
-}
+ "lib": [
+ "es2017",
+ "dom"
+ ]
+}
\ No newline at end of file
diff --git a/lib/builder-webpack4/tsconfig.json b/lib/builder-webpack4/tsconfig.json
index 94f6c5444204..14ffc40f6a8a 100644
--- a/lib/builder-webpack4/tsconfig.json
+++ b/lib/builder-webpack4/tsconfig.json
@@ -3,6 +3,11 @@
"compilerOptions": {
"rootDir": "./src"
},
- "include": ["src/**/*", "typings.d.ts"],
- "exclude": ["src/**.test.ts"]
-}
+ "include": [
+ "src/**/*",
+ "typings.d.ts"
+ ],
+ "exclude": [
+ "src/**.test.ts"
+ ]
+}
\ No newline at end of file
diff --git a/lib/builder-webpack5/tsconfig.json b/lib/builder-webpack5/tsconfig.json
index 94f6c5444204..14ffc40f6a8a 100644
--- a/lib/builder-webpack5/tsconfig.json
+++ b/lib/builder-webpack5/tsconfig.json
@@ -3,6 +3,11 @@
"compilerOptions": {
"rootDir": "./src"
},
- "include": ["src/**/*", "typings.d.ts"],
- "exclude": ["src/**.test.ts"]
-}
+ "include": [
+ "src/**/*",
+ "typings.d.ts"
+ ],
+ "exclude": [
+ "src/**.test.ts"
+ ]
+}
\ No newline at end of file
diff --git a/lib/channel-postmessage/tsconfig.json b/lib/channel-postmessage/tsconfig.json
index 61cbbd6356c3..42dad5efdd1b 100644
--- a/lib/channel-postmessage/tsconfig.json
+++ b/lib/channel-postmessage/tsconfig.json
@@ -3,7 +3,9 @@
"compilerOptions": {
"rootDir": "./src"
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -12,4 +14,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/channel-websocket/tsconfig.json b/lib/channel-websocket/tsconfig.json
index 1b75df12e942..0592527769e5 100644
--- a/lib/channel-websocket/tsconfig.json
+++ b/lib/channel-websocket/tsconfig.json
@@ -11,4 +11,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/channels/tsconfig.json b/lib/channels/tsconfig.json
index ed2d7ce12b43..fb14222847dc 100644
--- a/lib/channels/tsconfig.json
+++ b/lib/channels/tsconfig.json
@@ -2,7 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["node"]
+ "types": [
+ "node"
+ ]
},
"include": [
"src/**/*"
@@ -15,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/cli/scripts/generate-sb-packages-versions.js b/lib/cli/scripts/generate-sb-packages-versions.js
old mode 100644
new mode 100755
index 069d9359627e..a37646898908
--- a/lib/cli/scripts/generate-sb-packages-versions.js
+++ b/lib/cli/scripts/generate-sb-packages-versions.js
@@ -1,12 +1,19 @@
+#!/usr/bin/env node
+
const { writeJson, readJson } = require('fs-extra');
const path = require('path');
const globby = require('globby');
+const semver = require('@storybook/semver');
const rootDirectory = path.join(__dirname, '..', '..', '..');
const logger = console;
const run = async () => {
+ const updatedVersion = process.argv[process.argv.length - 1];
+
+ if (!semver.valid(updatedVersion)) throw new Error(`Invalid version: ${updatedVersion}`);
+
const storybookPackagesPaths = await globby(
`${rootDirectory}/@(app|addons|lib)/**/package.json`,
{
@@ -30,7 +37,7 @@ const run = async () => {
.filter(({ name }) => /@storybook/.test(name))
// As some previous steps are asynchronous order is not always the same so sort them to avoid that
.sort((package1, package2) => package1.name.localeCompare(package2.name))
- .reduce((acc, { name, version }) => ({ ...acc, [name]: version }), {});
+ .reduce((acc, { name }) => ({ ...acc, [name]: updatedVersion }), {});
await writeJson(path.join(__dirname, '..', 'src', 'versions.json'), packageToVersionMap, {
spaces: 2,
diff --git a/lib/cli/src/frameworks/svelte/Button.stories.js b/lib/cli/src/frameworks/svelte/Button.stories.js
new file mode 100644
index 000000000000..d700639dba2d
--- /dev/null
+++ b/lib/cli/src/frameworks/svelte/Button.stories.js
@@ -0,0 +1,51 @@
+import Button from './Button.svelte';
+
+// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
+// More on argTypes: https://storybook.js.org/docs/svelte/api/argtypes
+export default {
+ title: 'Example/Button',
+ component: Button,
+ argTypes: {
+ backgroundColor: { control: 'color' },
+ label: { control: 'text' },
+ onClick: { action: 'onClick' },
+ primary: { control: 'boolean' },
+ size: {
+ control: { type: 'select' },
+ options: ['small', 'medium', 'large'],
+ },
+ },
+};
+
+// More on component templates: https://storybook.js.org/docs/svelte/writing-stories/introduction#using-args
+const Template = (args) => ({
+ Component: Button,
+ props: args,
+ on: {
+ click: args.onClick,
+ },
+});
+
+// More on args: https://storybook.js.org/docs/svelte/writing-stories/args
+export const Primary = Template.bind({});
+Primary.args = {
+ primary: true,
+ label: 'Button',
+};
+
+export const Secondary = Template.bind({});
+Secondary.args = {
+ label: 'Button',
+};
+
+export const Large = Template.bind({});
+Large.args = {
+ size: 'large',
+ label: 'Button',
+};
+
+export const Small = Template.bind({});
+Small.args = {
+ size: 'small',
+ label: 'Button',
+};
diff --git a/lib/cli/src/frameworks/svelte/Button.stories.svelte b/lib/cli/src/frameworks/svelte/Button.stories.svelte
deleted file mode 100644
index 046635b93fd0..000000000000
--- a/lib/cli/src/frameworks/svelte/Button.stories.svelte
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/lib/cli/src/frameworks/svelte/Header.stories.js b/lib/cli/src/frameworks/svelte/Header.stories.js
new file mode 100644
index 000000000000..41497d78558d
--- /dev/null
+++ b/lib/cli/src/frameworks/svelte/Header.stories.js
@@ -0,0 +1,29 @@
+import Header from './Header.svelte';
+
+export default {
+ title: 'Example/Header',
+ component: Header,
+ argTypes: {
+ onLogin: { action: 'onLogin' },
+ onLogout: { action: 'onLogout' },
+ onCreateAccount: { action: 'onCreateAccount' },
+ },
+};
+
+const Template = (args) => ({
+ Component: Header,
+ props: args,
+ on: {
+ login: args.onLogin,
+ logout: args.onLogout,
+ createAccount: args.onCreateAccount,
+ },
+});
+
+export const LoggedIn = Template.bind({});
+LoggedIn.args = {
+ user: {},
+};
+
+export const LoggedOut = Template.bind({});
+LoggedOut.args = {};
diff --git a/lib/cli/src/frameworks/svelte/Header.stories.svelte b/lib/cli/src/frameworks/svelte/Header.stories.svelte
deleted file mode 100644
index edd67627b1fd..000000000000
--- a/lib/cli/src/frameworks/svelte/Header.stories.svelte
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/lib/cli/src/frameworks/svelte/Page.stories.js b/lib/cli/src/frameworks/svelte/Page.stories.js
new file mode 100644
index 000000000000..809c66be70c1
--- /dev/null
+++ b/lib/cli/src/frameworks/svelte/Page.stories.js
@@ -0,0 +1,29 @@
+import Page from './Page.svelte';
+
+export default {
+ title: 'Example/Page',
+ component: Page,
+ argTypes: {
+ onLogin: { action: 'onLogin' },
+ onLogout: { action: 'onLogout' },
+ onCreateAccount: { action: 'onCreateAccount' },
+ },
+};
+
+const Template = (args) => ({
+ Component: Page,
+ props: args,
+ on: {
+ login: args.onLogin,
+ logout: args.onLogout,
+ createAccount: args.onCreateAccount,
+ },
+});
+
+export const LoggedIn = Template.bind({});
+LoggedIn.args = {
+ user: {},
+};
+
+export const LoggedOut = Template.bind({});
+LoggedOut.args = {};
diff --git a/lib/cli/src/frameworks/svelte/Page.stories.svelte b/lib/cli/src/frameworks/svelte/Page.stories.svelte
deleted file mode 100644
index 336a64ac62ea..000000000000
--- a/lib/cli/src/frameworks/svelte/Page.stories.svelte
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/lib/cli/src/generators/ANGULAR/template-csf/.storybook/tsconfig.json b/lib/cli/src/generators/ANGULAR/template-csf/.storybook/tsconfig.json
index b1e810022ba0..a293ac56133d 100644
--- a/lib/cli/src/generators/ANGULAR/template-csf/.storybook/tsconfig.json
+++ b/lib/cli/src/generators/ANGULAR/template-csf/.storybook/tsconfig.json
@@ -1,10 +1,21 @@
{
"extends": "%SET_DURING_SB_INIT%",
"compilerOptions": {
- "types": ["node"],
+ "types": [
+ "node"
+ ],
"allowSyntheticDefaultImports": true
},
- "exclude": ["../src/test.ts", "../src/**/*.spec.ts", "../projects/**/*.spec.ts"],
- "include": ["../src/**/*", "../projects/**/*"],
- "files": ["./typings.d.ts"]
-}
+ "exclude": [
+ "../src/test.ts",
+ "../src/**/*.spec.ts",
+ "../projects/**/*.spec.ts"
+ ],
+ "include": [
+ "../src/**/*",
+ "../projects/**/*"
+ ],
+ "files": [
+ "./typings.d.ts"
+ ]
+}
\ No newline at end of file
diff --git a/lib/cli/src/generators/AURELIA/template-csf/.storybook/tsconfig.json b/lib/cli/src/generators/AURELIA/template-csf/.storybook/tsconfig.json
index 28aadc68fd9a..c567e670cb77 100644
--- a/lib/cli/src/generators/AURELIA/template-csf/.storybook/tsconfig.json
+++ b/lib/cli/src/generators/AURELIA/template-csf/.storybook/tsconfig.json
@@ -1,9 +1,20 @@
{
"extends": "%SET_DURING_SB_INIT%",
"compilerOptions": {
- "types": ["node"]
+ "types": [
+ "node"
+ ]
},
- "exclude": ["../src/test.ts", "../src/**/*.spec.ts", "../projects/**/*.spec.ts"],
- "include": ["../src/**/*", "../projects/**/*"],
- "files": ["./typings.d.ts"]
-}
+ "exclude": [
+ "../src/test.ts",
+ "../src/**/*.spec.ts",
+ "../projects/**/*.spec.ts"
+ ],
+ "include": [
+ "../src/**/*",
+ "../projects/**/*"
+ ],
+ "files": [
+ "./typings.d.ts"
+ ]
+}
\ No newline at end of file
diff --git a/lib/cli/src/generators/SVELTE/index.ts b/lib/cli/src/generators/SVELTE/index.ts
index f4f380870f4c..a5b5c9c0879e 100644
--- a/lib/cli/src/generators/SVELTE/index.ts
+++ b/lib/cli/src/generators/SVELTE/index.ts
@@ -35,7 +35,6 @@ const generator: Generator = async (packageManager, npmOptions, options) => {
await baseGenerator(packageManager, npmOptions, options, 'svelte', {
extraPackages: ['svelte', 'svelte-loader'],
- extraAddons: ['@storybook/addon-svelte-csf'],
extensions: ['js', 'jsx', 'ts', 'tsx', 'svelte'],
extraMain,
commonJs,
diff --git a/lib/cli/tsconfig.json b/lib/cli/tsconfig.json
index 02ed347850bc..82256aa3244f 100644
--- a/lib/cli/tsconfig.json
+++ b/lib/cli/tsconfig.json
@@ -2,7 +2,10 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["node", "jest"],
+ "types": [
+ "node",
+ "jest"
+ ],
"strict": false,
"strictNullChecks": false,
"forceConsistentCasingInFileNames": true,
@@ -12,6 +15,12 @@
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true
},
- "include": ["src/**/*"],
- "exclude": ["src/**/template*", "**/*.test.*", "src/frameworks/**/*"]
-}
+ "include": [
+ "src/**/*"
+ ],
+ "exclude": [
+ "src/**/template*",
+ "**/*.test.*",
+ "src/frameworks/**/*"
+ ]
+}
\ No newline at end of file
diff --git a/lib/client-api/tsconfig.json b/lib/client-api/tsconfig.json
index 6b79f028c19c..36ca4e1d3033 100644
--- a/lib/client-api/tsconfig.json
+++ b/lib/client-api/tsconfig.json
@@ -2,9 +2,13 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env"]
+ "types": [
+ "webpack-env"
+ ]
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -13,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/client-logger/tsconfig.json b/lib/client-logger/tsconfig.json
index fe6570608ad0..fb14222847dc 100644
--- a/lib/client-logger/tsconfig.json
+++ b/lib/client-logger/tsconfig.json
@@ -2,9 +2,13 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["node"]
+ "types": [
+ "node"
+ ]
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -13,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/codemod/tsconfig.json b/lib/codemod/tsconfig.json
index fe6570608ad0..fb14222847dc 100644
--- a/lib/codemod/tsconfig.json
+++ b/lib/codemod/tsconfig.json
@@ -2,9 +2,13 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["node"]
+ "types": [
+ "node"
+ ]
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -13,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/components/tsconfig.json b/lib/components/tsconfig.json
index 5878184e06a1..cff49ca75aca 100644
--- a/lib/components/tsconfig.json
+++ b/lib/components/tsconfig.json
@@ -3,7 +3,8 @@
"compilerOptions": {
"rootDir": "./src",
"types": [
- "jest", "@testing-library/jest-dom"
+ "jest",
+ "@testing-library/jest-dom"
]
},
"include": [
@@ -17,4 +18,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/core-client/tsconfig.json b/lib/core-client/tsconfig.json
index f7457fe9690c..9d2064f258e4 100644
--- a/lib/core-client/tsconfig.json
+++ b/lib/core-client/tsconfig.json
@@ -3,7 +3,14 @@
"compilerOptions": {
"rootDir": "./src"
},
- "include": ["src/**/*", "typings.d.ts"],
- "exclude": ["src/**.test.ts"],
- "files": ["./typings.d.ts"]
-}
+ "include": [
+ "src/**/*",
+ "typings.d.ts"
+ ],
+ "exclude": [
+ "src/**.test.ts"
+ ],
+ "files": [
+ "./typings.d.ts"
+ ]
+}
\ No newline at end of file
diff --git a/lib/core-common/tsconfig.json b/lib/core-common/tsconfig.json
index c013cb37095c..a0a2ef8bd405 100644
--- a/lib/core-common/tsconfig.json
+++ b/lib/core-common/tsconfig.json
@@ -2,8 +2,16 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["jest", "node"]
+ "types": [
+ "jest",
+ "node"
+ ]
},
- "include": ["src/**/*", "typings.d.ts"],
- "exclude": ["src/**.test.ts"]
-}
+ "include": [
+ "src/**/*",
+ "typings.d.ts"
+ ],
+ "exclude": [
+ "src/**.test.ts"
+ ]
+}
\ No newline at end of file
diff --git a/lib/core-events/tsconfig.json b/lib/core-events/tsconfig.json
index 61cbbd6356c3..42dad5efdd1b 100644
--- a/lib/core-events/tsconfig.json
+++ b/lib/core-events/tsconfig.json
@@ -3,7 +3,9 @@
"compilerOptions": {
"rootDir": "./src"
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -12,4 +14,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/core-server/tsconfig.json b/lib/core-server/tsconfig.json
index c013cb37095c..a0a2ef8bd405 100644
--- a/lib/core-server/tsconfig.json
+++ b/lib/core-server/tsconfig.json
@@ -2,8 +2,16 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["jest", "node"]
+ "types": [
+ "jest",
+ "node"
+ ]
},
- "include": ["src/**/*", "typings.d.ts"],
- "exclude": ["src/**.test.ts"]
-}
+ "include": [
+ "src/**/*",
+ "typings.d.ts"
+ ],
+ "exclude": [
+ "src/**.test.ts"
+ ]
+}
\ No newline at end of file
diff --git a/lib/core/tsconfig.json b/lib/core/tsconfig.json
index 2dfc208de492..4ca6a05573f3 100644
--- a/lib/core/tsconfig.json
+++ b/lib/core/tsconfig.json
@@ -3,7 +3,10 @@
"compilerOptions": {
"rootDir": "./src"
},
- "include": ["src/**/*", "typings.d.ts"],
+ "include": [
+ "src/**/*",
+ "typings.d.ts"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -12,5 +15,7 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
],
- "files": ["./typings.d.ts"]
-}
+ "files": [
+ "./typings.d.ts"
+ ]
+}
\ No newline at end of file
diff --git a/lib/csf-tools/tsconfig.json b/lib/csf-tools/tsconfig.json
index fe6570608ad0..fb14222847dc 100644
--- a/lib/csf-tools/tsconfig.json
+++ b/lib/csf-tools/tsconfig.json
@@ -2,9 +2,13 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["node"]
+ "types": [
+ "node"
+ ]
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -13,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/instrumenter/tsconfig.json b/lib/instrumenter/tsconfig.json
index 61cbbd6356c3..42dad5efdd1b 100644
--- a/lib/instrumenter/tsconfig.json
+++ b/lib/instrumenter/tsconfig.json
@@ -3,7 +3,9 @@
"compilerOptions": {
"rootDir": "./src"
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -12,4 +14,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/manager-webpack4/tsconfig.json b/lib/manager-webpack4/tsconfig.json
index 94f6c5444204..14ffc40f6a8a 100644
--- a/lib/manager-webpack4/tsconfig.json
+++ b/lib/manager-webpack4/tsconfig.json
@@ -3,6 +3,11 @@
"compilerOptions": {
"rootDir": "./src"
},
- "include": ["src/**/*", "typings.d.ts"],
- "exclude": ["src/**.test.ts"]
-}
+ "include": [
+ "src/**/*",
+ "typings.d.ts"
+ ],
+ "exclude": [
+ "src/**.test.ts"
+ ]
+}
\ No newline at end of file
diff --git a/lib/manager-webpack5/tsconfig.json b/lib/manager-webpack5/tsconfig.json
index 94f6c5444204..14ffc40f6a8a 100644
--- a/lib/manager-webpack5/tsconfig.json
+++ b/lib/manager-webpack5/tsconfig.json
@@ -3,6 +3,11 @@
"compilerOptions": {
"rootDir": "./src"
},
- "include": ["src/**/*", "typings.d.ts"],
- "exclude": ["src/**.test.ts"]
-}
+ "include": [
+ "src/**/*",
+ "typings.d.ts"
+ ],
+ "exclude": [
+ "src/**.test.ts"
+ ]
+}
\ No newline at end of file
diff --git a/lib/node-logger/tsconfig.json b/lib/node-logger/tsconfig.json
index 61cbbd6356c3..42dad5efdd1b 100644
--- a/lib/node-logger/tsconfig.json
+++ b/lib/node-logger/tsconfig.json
@@ -3,7 +3,9 @@
"compilerOptions": {
"rootDir": "./src"
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -12,4 +14,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/postinstall/tsconfig.json b/lib/postinstall/tsconfig.json
index a24ec6393862..edf1b8b611ef 100644
--- a/lib/postinstall/tsconfig.json
+++ b/lib/postinstall/tsconfig.json
@@ -3,6 +3,10 @@
"compilerOptions": {
"rootDir": "./src"
},
- "include": ["src/**/*"],
- "exclude": ["src/**.test.ts"]
-}
+ "include": [
+ "src/**/*"
+ ],
+ "exclude": [
+ "src/**.test.ts"
+ ]
+}
\ No newline at end of file
diff --git a/lib/preview-web/tsconfig.json b/lib/preview-web/tsconfig.json
index ada5eca36ce9..f95c78e5873c 100644
--- a/lib/preview-web/tsconfig.json
+++ b/lib/preview-web/tsconfig.json
@@ -2,9 +2,13 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["node"]
+ "types": [
+ "node"
+ ]
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -13,5 +17,8 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
],
- "lib": ["es2017", "dom"]
-}
+ "lib": [
+ "es2017",
+ "dom"
+ ]
+}
\ No newline at end of file
diff --git a/lib/router/tsconfig.json b/lib/router/tsconfig.json
index a0d826f8fcf6..42dad5efdd1b 100644
--- a/lib/router/tsconfig.json
+++ b/lib/router/tsconfig.json
@@ -14,4 +14,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/source-loader/tsconfig.json b/lib/source-loader/tsconfig.json
index d1ee4fc75941..36ca4e1d3033 100644
--- a/lib/source-loader/tsconfig.json
+++ b/lib/source-loader/tsconfig.json
@@ -2,7 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env"]
+ "types": [
+ "webpack-env"
+ ]
},
"include": [
"src/**/*"
@@ -15,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/store/tsconfig.json b/lib/store/tsconfig.json
index fe6570608ad0..fb14222847dc 100644
--- a/lib/store/tsconfig.json
+++ b/lib/store/tsconfig.json
@@ -2,9 +2,13 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["node"]
+ "types": [
+ "node"
+ ]
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
@@ -13,4 +17,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/theming/tsconfig.json b/lib/theming/tsconfig.json
index a0d826f8fcf6..42dad5efdd1b 100644
--- a/lib/theming/tsconfig.json
+++ b/lib/theming/tsconfig.json
@@ -14,4 +14,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
-}
+}
\ No newline at end of file
diff --git a/lib/ui/tsconfig.json b/lib/ui/tsconfig.json
index 038c99b67ac0..675496cc943c 100644
--- a/lib/ui/tsconfig.json
+++ b/lib/ui/tsconfig.json
@@ -2,15 +2,23 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
- "types": ["webpack-env"],
+ "types": [
+ "webpack-env"
+ ],
"resolveJsonModule": true,
- "lib": ["ESNext", "DOM", "DOM.Iterable"]
+ "lib": [
+ "ESNext",
+ "DOM",
+ "DOM.Iterable"
+ ]
},
- "include": ["src/**/*"],
+ "include": [
+ "src/**/*"
+ ],
"exclude": [
"src/**/*.test.*",
"src/**/__tests__/**/*",
"src/**/*.stories.*",
"src/**/*.mockdata.*"
]
-}
+}
\ No newline at end of file
diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json
index 5e0831ea9bb7..f7539ce92609 100644
--- a/scripts/tsconfig.json
+++ b/scripts/tsconfig.json
@@ -2,7 +2,10 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
- "types": ["node", "jest"],
+ "types": [
+ "node",
+ "jest"
+ ],
"strict": false,
"strictNullChecks": false,
"forceConsistentCasingInFileNames": true,
@@ -12,8 +15,12 @@
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"paths": {
- "verdaccio": ["./typings.d.ts"]
+ "verdaccio": [
+ "./typings.d.ts"
+ ]
}
},
- "include": ["./**/*"]
-}
+ "include": [
+ "./**/*"
+ ]
+}
\ No newline at end of file
diff --git a/tsconfig.json b/tsconfig.json
index 69626deefa57..a46356313b3e 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -13,8 +13,13 @@
"esModuleInterop": true,
"isolatedModules": true,
"target": "es5",
- "types": ["jest"],
- "lib": ["es2019", "dom"]
+ "types": [
+ "jest"
+ ],
+ "lib": [
+ "es2019",
+ "dom"
+ ]
},
"exclude": [
"**/dist",
@@ -26,4 +31,4 @@
"**/FlowType*",
"**/setup-jest.ts"
]
-}
+}
\ No newline at end of file