Skip to content

Commit 3af3d16

Browse files
authored
Merge pull request #6 from elseu/fix/allow-react-18-and-updates
fix: allow react 18 and update storybook and other deps
2 parents b90ae5e + 0b9bac1 commit 3af3d16

File tree

10 files changed

+62046
-18261
lines changed

10 files changed

+62046
-18261
lines changed

.editorconfig

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[*]
2+
charset=utf-8
3+
end_of_line=lf
4+
insert_final_newline=false
5+
indent_style=space
6+
indent_size=2
7+
8+
[{*.sht,*.html,*.shtm,*.shtml,*.ng,*.htm}]
9+
indent_style=tab
10+
tab_width=4
11+
12+
[{phpunit.xml.dist,*.jhm,*.xjb,*.rng,*.wsdl,*.fxml,*.plan,*.pom,*.xslt,*.jrxml,*.ant,*.xul,*.xsl,*.xsd,*.tld,*.jnlp,*.wsdd,*.wadl,*.xml}]
13+
indent_style=space
14+
indent_size=4
15+
16+
[{.eslintrc,.babelrc,jest.config,.stylelintrc,*.bowerrc,*.jsb3,*.jsb2,*.graphqlconfig,*.json}]
17+
indent_style=space
18+
indent_size=2
19+
20+
[*.svg]
21+
indent_style=space
22+
indent_size=4
23+
24+
[*.css]
25+
indent_style=space
26+
indent_size=2
27+
28+
[.editorconfig]
29+
indent_style=space
30+
indent_size=4
31+
32+
[{*.ats,*.ts}]
33+
indent_style=space
34+
indent_size=2
35+
36+
[*.tsx]
37+
indent_style=space
38+
indent_size=2
39+
40+
[{tsconfig.lib.json,tsconfig.app.json,tsconfig.e2e.json,tsconfig.json,tsconfig.spec.json}]
41+
indent_style=space
42+
indent_size=2
43+
44+
[*.js.map]
45+
indent_style=space
46+
indent_size=2
47+
48+
[*.ejs]
49+
indent_style=space
50+
indent_size=4
51+
52+
[{*.yaml,*.yml}]
53+
indent_style=space
54+
indent_size=2
55+
56+
[{composer.lock,composer.json}]
57+
indent_style=space
58+
indent_size=2
59+

.storybook/addons.js

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

.storybook/config.tsx

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

.storybook/main.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
"stories": [
3+
"../src/**/*.stories.mdx",
4+
"../src/**/*.stories.@(js|jsx|ts|tsx)"
5+
],
6+
"addons": [
7+
'@storybook/preset-create-react-app',
8+
"@storybook/addon-links",
9+
"@storybook/addon-essentials",
10+
],
11+
core: {
12+
builder: "webpack5",
13+
},
14+
typescript: {
15+
check: false,
16+
checkOptions: {},
17+
reactDocgen: 'react-docgen-typescript',
18+
reactDocgenTypescriptOptions: {
19+
shouldExtractLiteralValuesFromEnum: true,
20+
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
21+
},
22+
}
23+
}

.storybook/manager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { addons } from '@storybook/addons';
2+
import theme from './theme';
3+
4+
addons.setConfig({
5+
theme,
6+
});

.storybook/theme.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
import { create } from '@storybook/theming';
3+
4+
export default create({
5+
base: 'light',
6+
brandTitle: 'use-tree',
7+
});

0 commit comments

Comments
 (0)