Skip to content

Commit 928fb22

Browse files
authored
Support position for devtool (#80)
* refactor(example): migrate from create-react-app to vitejs * feat: add storybook and update packages * feat: add route for example * feat: add unit test and set top-right as default position
1 parent 38afd12 commit 928fb22

82 files changed

Lines changed: 9440 additions & 14121 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ž.eslintrc.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module.exports = {
22
parser: '@typescript-eslint/parser',
3-
plugins: ['@typescript-eslint', 'react-hooks'],
3+
plugins: ['@typescript-eslint', 'react-hooks', '@emotion'],
44
extends: [
55
'plugin:react/recommended',
66
'plugin:@typescript-eslint/recommended',
7-
'prettier/@typescript-eslint',
87
'plugin:prettier/recommended',
8+
'prettier',
99
],
1010
parser: '@typescript-eslint/parser',
1111
parserOptions: {

β€Ž.husky/.gitignoreβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

β€Ž.husky/pre-commitβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm test

β€Ž.storybook/main.jsβ€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
"stories": [
3+
"../src/**/*.stories.mdx",
4+
"../src/**/*.stories.@(js|jsx|ts|tsx)"
5+
],
6+
"addons": [
7+
"@storybook/addon-links",
8+
"@storybook/addon-essentials"
9+
]
10+
}

β€Ž.storybook/preview.jsβ€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
export const parameters = {
3+
actions: { argTypesRegex: "^on[A-Z].*" },
4+
controls: {
5+
matchers: {
6+
color: /(background|color)$/i,
7+
date: /Date$/,
8+
},
9+
},
10+
}

β€Žapp/.envβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žapp/README.mdβ€Ž

Lines changed: 0 additions & 44 deletions
This file was deleted.

β€Žapp/build/asset-manifest.jsonβ€Ž

Lines changed: 0 additions & 22 deletions
This file was deleted.

β€Žapp/build/favicon.icoβ€Ž

-3.08 KB
Binary file not shown.

β€Žapp/build/index.htmlβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
Β (0)