Skip to content

Commit 568985f

Browse files
committed
chore: migrate to sb v7
1 parent bbdd6e0 commit 568985f

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

.babelrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"sourceType": "unambiguous",
3+
"presets": [
4+
[
5+
"@babel/preset-env",
6+
{
7+
"targets": {
8+
"chrome": 100,
9+
"safari": 15,
10+
"firefox": 91
11+
}
12+
}
13+
],
14+
"@babel/preset-typescript",
15+
"@babel/preset-react"
16+
],
17+
"plugins": []
18+
}

.eslintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"extends": "react-app"
2+
"extends": [
3+
"react-app",
4+
"plugin:storybook/recommended"
5+
]
36
}

.storybook/main.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
module.exports = {
22
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
3+
34
addons: [
45
"@storybook/addon-links",
56
"@storybook/addon-essentials",
67
"@storybook/addon-interactions",
78
],
8-
framework: "@storybook/react",
9-
core: {
10-
builder: "@storybook/builder-webpack5",
9+
10+
framework: {
11+
name: "@storybook/react-webpack5",
12+
options: {}
1113
},
14+
1215
webpackFinal: async (config) => {
1316
config.module.rules.push({
1417
test: /\.(txt|csv|eps|mmdb)$/,
@@ -25,4 +28,8 @@ module.exports = {
2528

2629
return config;
2730
},
31+
32+
docs: {
33+
autodocs: true
34+
}
2835
};

0 commit comments

Comments
 (0)