Skip to content

Commit

Permalink
Merge pull request #22 from oarepo/preact-to-react
Browse files Browse the repository at this point in the history
Backward preact to react migration
  • Loading branch information
corovcam authored Aug 9, 2024
2 parents 3229b49 + fa0a850 commit 74058a8
Show file tree
Hide file tree
Showing 18 changed files with 2,132 additions and 3,534 deletions.
33 changes: 33 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = {
"overrides": [
{
"files": ["src/**/*"],
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
"plugin:storybook/recommended"
],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "16"
}
},
"plugins": ["react", "react-hooks", "jsx-a11y"],
"rules": {
"react/prop-types": "off",
}
}
]
}
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
20
4 changes: 2 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type { import('@storybook/preact-vite').StorybookConfig } */
/** @type { import('@storybook/react-vite').StorybookConfig } */
const config = {
stories: ["../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
staticDirs: ['../public'],
Expand All @@ -10,7 +10,7 @@ const config = {
"@chromatic-com/storybook"
],
framework: {
name: "@storybook/preact-vite",
name: "@storybook/react-vite",
options: {},
},
docs: {},
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ initialize({
onUnhandledRequest: 'bypass'
});

/** @type { import('@storybook/preact').Preview } */
/** @type { import('@storybook/react').Preview } */
const preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
Expand Down
43 changes: 24 additions & 19 deletions README.md

Large diffs are not rendered by default.

Loading

0 comments on commit 74058a8

Please sign in to comment.