Skip to content

Commit

Permalink
feat/chore: add profile entity & add storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Jun 5, 2024
1 parent dd57f35 commit aa24f24
Show file tree
Hide file tree
Showing 17 changed files with 9,001 additions and 1,187 deletions.
50 changes: 28 additions & 22 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ module.exports = {
ignorePatterns: ["!**/.server", "!**/.client"],

// Base config
extends: ["eslint:recommended"],
extends: [
"eslint:recommended",
"plugin:storybook/recommended",
"plugin:storybook/recommended",
"plugin:storybook/recommended",
"plugin:storybook/recommended"
],

overrides: [
// React
Expand Down Expand Up @@ -51,27 +57,27 @@ module.exports = {
},

// Typescript
// {
// files: ["**/*.{ts,tsx}"],
// plugins: ["@typescript-eslint", "import"],
// parser: "@typescript-eslint/parser",
// settings: {
// "import/internal-regex": "^~/",
// "import/resolver": {
// node: {
// extensions: [".ts", ".tsx"],
// },
// typescript: {
// alwaysTryTypes: true,
// },
// },
// },
// extends: [
// "plugin:@typescript-eslint/recommended",
// "plugin:import/recommended",
// "plugin:import/typescript",
// ],
// },
{
files: ["**/*.{ts,tsx}"],
plugins: ["import"], // "@typescript-eslint",
parser: "@typescript-eslint/parser",
settings: {
"import/internal-regex": "^~/",
"import/resolver": {
node: {
extensions: [".ts", ".tsx"],
},
typescript: {
alwaysTryTypes: true,
},
},
},
extends: [
// "plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
],
},

// Node
{
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
/.cache
/build
.env
.idea
.idea
*storybook.log
21 changes: 21 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-onboarding',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
],
framework: {
name: '@storybook/react-vite',
options: {
builder: {
viteConfigPath: 'sb-vite.config.ts',
},
},
},
};
export default config;
15 changes: 15 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { Preview } from '@storybook/react';
import 'src/shared/styles/variables.css';

const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
Loading

0 comments on commit aa24f24

Please sign in to comment.