Skip to content

Commit

Permalink
chore: 🤖 install Storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
ginpei authored Jul 14, 2021
1 parent 5caee94 commit 46f126b
Show file tree
Hide file tree
Showing 23 changed files with 16,276 additions and 5,160 deletions.
11 changes: 10 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ module.exports = {
"next/core-web-vitals",
],
rules: {
// your rules here
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: [
"**/*.test.{ts,tsx}",
"**/*.spec.{ts,tsx}",
"**/*.stories.{ts,tsx}",
],
},
],
},
};
10 changes: 10 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials"
]
}
9 changes: 9 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
Loading

0 comments on commit 46f126b

Please sign in to comment.