Skip to content

Commit

Permalink
Merge pull request #94 from Eldemarkki/upgrade-to-storybook-7
Browse files Browse the repository at this point in the history
chore(deps): upgrade to Storybook 7
  • Loading branch information
Esinko authored Apr 14, 2023
2 parents 13ed068 + 5ad300b commit a8251cc
Show file tree
Hide file tree
Showing 5 changed files with 5,952 additions and 13,620 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "next/core-web-vitals",
"extends": [
"next/core-web-vitals",
"plugin:storybook/recommended"
],
"rules": {
"import/no-anonymous-default-export": "off",
"react/display-name": "off"
Expand Down
12 changes: 6 additions & 6 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module.exports = {
"stories": [
"../components/**/*.stories.mdx",
"../components/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-essentials",
"storybook-css-modules-preset"
],
"framework": "@storybook/react"
}
"framework": {
name: "@storybook/nextjs",
options: {}
},
};
3 changes: 1 addition & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import "../styles/globals.css"
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
}
Loading

1 comment on commit a8251cc

@vercel
Copy link

@vercel vercel bot commented on a8251cc Apr 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.