|
30 | 30 | "react-intl": "5.15.8",
|
31 | 31 | "react-modal": "3.13.1",
|
32 | 32 | "react-popper": "2.2.5",
|
| 33 | + "react-router": "5.2.0", |
33 | 34 | "react-router-dom": "5.2.0",
|
34 | 35 | "react-scripts": "5.0.0",
|
35 | 36 | "react-switch": "6.0.0",
|
|
52 | 53 | "@commitlint/cli": "16.0.2",
|
53 | 54 | "@commitlint/config-conventional": "16.0.0",
|
54 | 55 | "@craco/craco": "6.4.3",
|
| 56 | + "@storybook/addon-actions": "6.4.22", |
| 57 | + "@storybook/addon-essentials": "6.4.22", |
| 58 | + "@storybook/addon-interactions": "6.4.22", |
| 59 | + "@storybook/addon-links": "6.4.22", |
| 60 | + "@storybook/addon-postcss": "2.0.0", |
| 61 | + "@storybook/builder-webpack5": "6.4.22", |
| 62 | + "@storybook/manager-webpack5": "6.4.22", |
| 63 | + "@storybook/node-logger": "6.4.22", |
| 64 | + "@storybook/preset-create-react-app": "4.1.0", |
| 65 | + "@storybook/react": "6.4.22", |
| 66 | + "@storybook/testing-library": "0.0.11", |
55 | 67 | "@testing-library/jest-dom": "5.11.4",
|
56 | 68 | "@testing-library/react": "11.1.0",
|
57 | 69 | "@testing-library/user-event": "12.1.10",
|
|
90 | 102 | "eslint-config-ts-react-important-stuff": "3.0.0",
|
91 | 103 | "eslint-plugin-formatjs": "2.20.5",
|
92 | 104 | "eslint-plugin-jest": "25.2.4",
|
| 105 | + "eslint-plugin-prettier": "4.0.0", |
93 | 106 | "eslint-plugin-promise": "6.0.0",
|
94 | 107 | "eslint-plugin-react": "7.28.0",
|
95 | 108 | "eslint-plugin-simple-import-sort": "7.0.0",
|
96 | 109 | "eslint-plugin-unicorn": "40.1.0",
|
97 | 110 | "lint-staged": "12.1.7",
|
98 | 111 | "postcss": "7",
|
99 | 112 | "simple-git-hooks": "2.7.0",
|
| 113 | + "storybook-dark-mode": "1.1.0", |
100 | 114 | "stylelint": "14.2.0",
|
101 | 115 | "stylelint-config-standard": "24.0.0",
|
102 |
| - "tailwindcss": "npm:@tailwindcss/postcss7-compat" |
| 116 | + "tailwindcss": "npm:@tailwindcss/postcss7-compat", |
| 117 | + "tsconfig-paths-webpack-plugin": "3.5.2", |
| 118 | + "webpack": "5.72.0" |
103 | 119 | },
|
104 | 120 | "scripts": {
|
105 | 121 | "start": "node ./env.js && yarn & craco start",
|
|
113 | 129 | "test": "craco test",
|
114 | 130 | "eject": "react-scripts eject",
|
115 | 131 | "cy:open": "cypress open",
|
116 |
| - "cy:run": "cypress run" |
| 132 | + "cy:run": "cypress run", |
| 133 | + "storybook": "start-storybook -p 6006 -s public", |
| 134 | + "build-storybook": "build-storybook -s public" |
117 | 135 | },
|
118 | 136 | "simple-git-hooks": {
|
119 | 137 | "pre-commit": "yarn lint-stage && yarn lint:fix",
|
|
124 | 142 | "extends": [
|
125 | 143 | "react-app",
|
126 | 144 | "react-app/jest"
|
| 145 | + ], |
| 146 | + "overrides": [ |
| 147 | + { |
| 148 | + "files": [ |
| 149 | + "**/*.stories.*" |
| 150 | + ], |
| 151 | + "rules": { |
| 152 | + "import/no-anonymous-default-export": "off" |
| 153 | + } |
| 154 | + } |
127 | 155 | ]
|
128 | 156 | },
|
129 | 157 | "browserslist": {
|
|
0 commit comments