-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,428 changed files
with
12,518 additions
and
16,423 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,13 @@ | ||
// .storybook/main.ts | ||
|
||
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-webpack5) | ||
import type { StorybookConfig } from '@storybook/react-webpack5'; | ||
import { NormalModuleReplacementPlugin } from 'webpack'; | ||
import type { StorybookConfig } from '@storybook/react-vite'; | ||
import path from 'path'; | ||
|
||
const config: StorybookConfig = { | ||
stories: [ | ||
'../packages/modules/packages/**/src/**/*.stories.@(ts|tsx)', | ||
'../packages/plugins/packages/**/src/**/*.stories.@(ts|tsx)', | ||
'../packages/sdk/packages/**/src/**/*.stories.@(ts|tsx)' | ||
], | ||
stories: ['../**/src/**/*.mdx', '../**/src/**/*.stories.@(ts|tsx|js|jsx)'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'storybook-dark-mode', | ||
'@storybook/addon-interactions', | ||
], | ||
typescript: { | ||
check: true, | ||
checkOptions: {}, | ||
reactDocgen: 'react-docgen-typescript', | ||
reactDocgenTypescriptOptions: { | ||
shouldExtractLiteralValuesFromEnum: true, | ||
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true), | ||
}, | ||
}, | ||
features: { legacyMdx1: true }, | ||
framework: { | ||
name: '@storybook/react-webpack5', | ||
options: { | ||
|
||
}, | ||
}, | ||
core: { | ||
disableTelemetry: true, | ||
}, | ||
docs: { | ||
autodocs: 'tag', | ||
}, | ||
/*refs: { | ||
'design-system': { | ||
title: 'Storybook Design System', | ||
url: 'https://5ccbc373887ca40020446347-yldsqjoxzb.chromatic.com', | ||
}, | ||
},*/ | ||
webpackFinal: async (config, { configType }) => { | ||
config.plugins = config.plugins ?? [] | ||
config.plugins.push( | ||
// Remove node: from import specifiers, because Next.js does not yet support node: scheme | ||
// https://github.com/vercel/next.js/issues/28774 | ||
new NormalModuleReplacementPlugin( | ||
/^node:/, | ||
(resource) => { | ||
resource.request = resource.request.replace(/^node:/, ''); | ||
}, | ||
) | ||
); | ||
|
||
/** | ||
* Configure webpack to allow using .js extension for typescript file imports. | ||
* | ||
* Source - https://github.com/storybookjs/storybook/issues/11587#issuecomment-1374816054 | ||
* Webpack Reference - https://webpack.js.org/configuration/resolve/#resolveextensionalias | ||
*/ | ||
const resolve = config?.resolve | ||
if (resolve) { | ||
resolve.extensionAlias = { | ||
".js": [".tsx", ".ts", ".js"], | ||
}; | ||
} | ||
|
||
return config; | ||
}, | ||
framework: '@storybook/react-vite' | ||
}; | ||
|
||
export default config; | ||
export default config; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// eslint.config.mjs | ||
|
||
import { config as xylabsConfig } from '@xylabs/eslint-config-react-flat' | ||
|
||
export default [ | ||
{ | ||
ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**', 'public', 'storybook-static', '.storybook'], | ||
}, | ||
...xylabsConfig, | ||
{ | ||
rules: { | ||
'@typescript-eslint/no-misused-promises': ['off'], | ||
'@eslint-react/no-array-index-key': ['off'], | ||
}, | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.