Skip to content

Commit 5a32b0f

Browse files
Storybook improvements. (#128)
* Use args for simpler stories. * Add vscode settings to get config file to work. * Add play test for single story. * Intentially fail a test, see if Chromatic fails. * Fix test.
1 parent 6680510 commit 5a32b0f

7 files changed

Lines changed: 5264 additions & 402 deletions

File tree

.storybook/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ module.exports = {
55
"@storybook/addon-essentials",
66
"@storybook/addon-interactions",
77
],
8+
features: {
9+
interactionsDebugger: true,
10+
},
811
framework: "@storybook/react",
912
core: {
1013
builder: "@storybook/builder-webpack5",

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"eslint.experimental": {
3+
"useFlatConfig": false
4+
},
5+
"eslint.options": {
6+
"overrideConfigFile": "eslint.config.js"
7+
}
8+
}

eslint.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ module.exports = {
33
parserOptions: {
44
project: "./tsconfig.json",
55
},
6-
env: {
7-
jest: true,
8-
},
96
plugins: ["@typescript-eslint", "prettier"],
107
extends: [
118
"airbnb-typescript",
@@ -29,6 +26,7 @@ module.exports = {
2926
files: ["./stories/**/*stories*"],
3027
rules: {
3128
"import/no-default-export": 0,
29+
"import/no-extraneous-dependencies": "off",
3230
},
3331
},
3432
],

0 commit comments

Comments
 (0)