@kurocado-studio/systemhaus-react 1.1.0-develop.9 → 1.10.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1 +1,83 @@
1
- Kurocado Studio Design System components
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react)
8
+ uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in
9
+ [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
10
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc)
11
+ uses [SWC](https://swc.rs/) for Fast Refresh
12
+
13
+ ## React Compiler
14
+
15
+ The React Compiler is not enabled on this template because of its impact on dev & build
16
+ performances. To add it, see
17
+ [this documentation](https://react.dev/learn/react-compiler/installation).
18
+
19
+ ## Expanding the ESLint configuration
20
+
21
+ If you are developing a production application, we recommend updating the configuration to enable
22
+ type-aware lint rules:
23
+
24
+ ```js
25
+ export default defineConfig([
26
+ globalIgnores(['dist']),
27
+ {
28
+ files: ['**/*.{ts,tsx}'],
29
+ extends: [
30
+ // Other configs...
31
+
32
+ // Remove tseslint.configs.recommended and replace with this
33
+ tseslint.configs.recommendedTypeChecked,
34
+ // Alternatively, use this for stricter rules
35
+ tseslint.configs.strictTypeChecked,
36
+ // Optionally, add this for stylistic rules
37
+ tseslint.configs.stylisticTypeChecked,
38
+
39
+ // Other configs...
40
+ ],
41
+ languageOptions: {
42
+ parserOptions: {
43
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
44
+ tsconfigRootDir: import.meta.dirname,
45
+ },
46
+ // other options...
47
+ },
48
+ },
49
+ ]);
50
+ ```
51
+
52
+ You can also install
53
+ [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x)
54
+ and
55
+ [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom)
56
+ for React-specific lint rules:
57
+
58
+ ```js
59
+ // eslint.config.js
60
+ import reactDom from 'eslint-plugin-react-dom';
61
+ import reactX from 'eslint-plugin-react-x';
62
+
63
+ export default defineConfig([
64
+ globalIgnores(['dist']),
65
+ {
66
+ files: ['**/*.{ts,tsx}'],
67
+ extends: [
68
+ // Other configs...
69
+ // Enable lint rules for React
70
+ reactX.configs['recommended-typescript'],
71
+ // Enable lint rules for React DOM
72
+ reactDom.configs.recommended,
73
+ ],
74
+ languageOptions: {
75
+ parserOptions: {
76
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
77
+ tsconfigRootDir: import.meta.dirname,
78
+ },
79
+ // other options...
80
+ },
81
+ },
82
+ ]);
83
+ ```