Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .babelrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"@babel/preset-typescript",
"@babel/preset-react"
["@babel/preset-react", {"runtime":"automatic"}]
],
"plugins": []
}
8 changes: 7 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const config = {
'@storybook/addon-docs',
'@storybook/addon-controls',
'storybook-css-modules-preset',
'@storybook/preview-api',
'@storybook/addon-a11y',
{
name: "storybook-design-token",
Expand All @@ -17,12 +18,17 @@ const config = {
autodocs: "tag",
},
},
'@storybook/addon-mdx-gfm'
'@storybook/addon-mdx-gfm',
'@storybook/addon-webpack5-compiler-babel'
],
framework: {
name: '@storybook/react-webpack5',
options: {}
},
docs: {
autodocs: true
},
staticDirs: ["../static"],
};

export default config;
2 changes: 1 addition & 1 deletion .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/manager-api';
import camTheme from './capgeminiTheme';

addons.setConfig({
Expand Down
34 changes: 13 additions & 21 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,17 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "6.4.2",
"@fortawesome/free-solid-svg-icons": "6.4.2",
"@fortawesome/fontawesome-svg-core": "6.5.1",
"@fortawesome/free-solid-svg-icons": "6.5.1",
"@fortawesome/react-fontawesome": "0.2.0",
"@types/node": "20.5.7",
"react-router-dom": "6.15.0",
"react-scripts": "5.0.1",
"typescript": "5.2.2"
"react-router-dom": "6.22.3"
},
"scripts": {
"start": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
Expand All @@ -36,16 +27,17 @@
]
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"typescript": "^5.2.2",
"vite": "^5.1.4",
"@types/node": "20.11.30",
"@types/react-router-dom": "5.3.3",
"@typescript-eslint/eslint-plugin": "7.4.0",
"@typescript-eslint/parser": "7.4.0",
"@vitejs/plugin-react": "4.2.1",
"eslint": "8.57.0",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-react-refresh": "0.4.6",
"node-sass": "9.0.0",
"web-vitals": "3.4.0"
"typescript": "5.4.3",
"vite": "5.2.6",
"web-vitals": "3.5.2"
}
}
1 change: 0 additions & 1 deletion example/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'react-app-polyfill/ie11';
import reportWebVitals from './reportWebVitals';
import ReactDOM from 'react-dom/client';
import { BrowserRouter, Route, Routes } from 'react-router-dom';
Expand Down
1 change: 0 additions & 1 deletion example/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"@storybook/addon-essentials": "^6.3.8",
"@storybook/addon-knobs": "^6.3.1",
"@storybook/addon-links": "^6.3.8",
"@storybook/addons": "^6.3.8",
"@storybook/preset-typescript": "^3.0.0",
"@storybook/react": "^6.3.8",
"@storybook/theming": "^6.3.8",
Expand Down
2 changes: 0 additions & 2 deletions example/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'react-app-polyfill/ie11';
import * as React from 'react';
import { Link } from 'react-router-dom';

export const Home = () => (
Expand Down
Loading