Skip to content

Commit

Permalink
fix: upgraded storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
rickimoore committed Nov 10, 2023
1 parent 992a2ee commit 3720b22
Show file tree
Hide file tree
Showing 4 changed files with 2,998 additions and 4,877 deletions.
18 changes: 13 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"overrides": [
"prettier",
"plugin:storybook/recommended"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
Expand All @@ -24,12 +24,20 @@
"rules": {
"react/react-in-jsx-scope": "off",
"spaced-comment": "error",
"quotes": ["error", "single"],
"quotes": [
"error",
"single"
],
"no-duplicate-imports": "error",
"react/prop-types": 0,
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
]
},
"settings": {
"import/resolver": {
Expand Down
33 changes: 18 additions & 15 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
const path = require('path');
const path = require('path')

module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/preset-create-react-app",
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],

addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/preset-create-react-app',
'storybook-dark-mode/register',
'storybook-tailwind-dark-mode'
'storybook-tailwind-dark-mode',
],
"framework": "@storybook/react",
"core": {
"builder": "@storybook/builder-webpack5"

framework: {
name: '@storybook/react-webpack5',
options: {},
},

docs: {
autodocs: true,
},
}
}
38 changes: 21 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": {
"@electron-forge/maker-dmg": "^6.0.5",
"@hookform/resolvers": "^2.9.8",
"@storybook/theming": "^6.5.10",
"@storybook/theming": "^7.5.3",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.4.0",
"@testing-library/react-hooks": "^8.0.1",
Expand Down Expand Up @@ -70,8 +70,8 @@
"coverage": "jest --coverage",
"eject": "react-scripts eject",
"build-all": "yarn build && yarn make",
"storybook": "start-storybook -p 6006 -s public",
"build-storybook": "build-storybook -s public",
"storybook": "storybook dev -p 6006 -s public",
"build-storybook": "storybook build -s public",
"test-storybook": "test-storybook",
"lint": "eslint src/**/*.{ts,tsx}",
"lint:fix": "eslint --fix 'src/**/*.{ts,tsx}'",
Expand Down Expand Up @@ -123,19 +123,18 @@
"@electron-forge/maker-squirrel": "^6.0.3",
"@electron-forge/maker-zip": "^6.0.3",
"@faker-js/faker": "^7.5.0",
"@storybook/addon-actions": "^6.5.10",
"@storybook/addon-essentials": "^6.5.10",
"@storybook/addon-interactions": "^6.5.10",
"@storybook/addon-links": "^6.5.10",
"@storybook/addon-actions": "^7.5.3",
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-interactions": "^7.5.3",
"@storybook/addon-links": "^7.5.3",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/addons": "^6.5.10",
"@storybook/builder-webpack5": "^6.5.10",
"@storybook/manager-webpack5": "^6.5.10",
"@storybook/node-logger": "^6.5.10",
"@storybook/preset-create-react-app": "^4.1.2",
"@storybook/react": "^6.5.10",
"@storybook/test-runner": "^0.7.0",
"@storybook/testing-library": "^0.0.13",
"@storybook/addons": "^7.5.3",
"@storybook/node-logger": "^7.5.3",
"@storybook/preset-create-react-app": "^7.5.3",
"@storybook/react": "^7.5.3",
"@storybook/react-webpack5": "^7.5.3",
"@storybook/test-runner": "^0.14.0",
"@storybook/testing-library": "^0.2.2",
"@typescript-eslint/eslint-plugin": "^5.38.0",
"@typescript-eslint/parser": "^5.38.0",
"babel-plugin-named-exports-order": "^0.0.2",
Expand All @@ -150,15 +149,20 @@
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-storybook": "^0.6.15",
"foreman": "^3.0.1",
"jest": "^29.3.1",
"jest-svg-transformer": "^1.0.0",
"postcss": "^8",
"prettier": "^2.7.1",
"prop-types": "^15.8.1",
"react-test-renderer": "^18.2.0",
"storybook-dark-mode": "^1.1.0",
"storybook-tailwind-dark-mode": "^1.0.15",
"storybook": "^7.5.3",
"storybook-dark-mode": "^3.0.1",
"storybook-tailwind-dark-mode": "^1.0.22",
"webpack": "^5.74.0"
},
"resolutions": {
"@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.cd77847.0"
}
}
Loading

0 comments on commit 3720b22

Please sign in to comment.