Skip to content

Commit 3b52727

Browse files
committed
chore(demo): format project files for consistency
1 parent 78a084c commit 3b52727

File tree

7 files changed

+1230
-3363
lines changed

7 files changed

+1230
-3363
lines changed

demo/react-vite/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ export default tseslint.config({
2828
tsconfigRootDir: import.meta.dirname,
2929
},
3030
},
31-
})
31+
});
3232
```
3333

3434
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
3535

3636
```js
3737
// eslint.config.js
38-
import reactX from 'eslint-plugin-react-x'
39-
import reactDom from 'eslint-plugin-react-dom'
38+
import reactX from 'eslint-plugin-react-x';
39+
import reactDom from 'eslint-plugin-react-dom';
4040

4141
export default tseslint.config({
4242
plugins: {
@@ -50,5 +50,5 @@ export default tseslint.config({
5050
...reactX.configs['recommended-typescript'].rules,
5151
...reactDom.configs.recommended.rules,
5252
},
53-
})
53+
});
5454
```

demo/react-vite/eslint.config.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import js from '@eslint/js'
2-
import globals from 'globals'
3-
import reactHooks from 'eslint-plugin-react-hooks'
4-
import reactRefresh from 'eslint-plugin-react-refresh'
5-
import tseslint from 'typescript-eslint'
1+
import js from '@eslint/js';
2+
import globals from 'globals';
3+
import reactHooks from 'eslint-plugin-react-hooks';
4+
import reactRefresh from 'eslint-plugin-react-refresh';
5+
import tseslint from 'typescript-eslint';
66

77
export default tseslint.config(
88
{ ignores: ['dist'] },
@@ -19,10 +19,7 @@ export default tseslint.config(
1919
},
2020
rules: {
2121
...reactHooks.configs.recommended.rules,
22-
'react-refresh/only-export-components': [
23-
'warn',
24-
{ allowConstantExport: true },
25-
],
22+
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
2623
},
27-
},
28-
)
24+
}
25+
);

demo/react-vite/src/index.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
@import "tailwindcss";
1+
@import 'tailwindcss';
22

33
@tailwind utilities;
44

5-
@theme(dark) {
5+
@theme (dark) {
66
/* Neon Colors */
77
--neon-pink: #ff2d76;
88
--neon-blue: #00f9ff;
99
--neon-purple: #b537f2;
1010
--neon-green: #3fff00;
1111
--neon-yellow: #ffff00;
12-
--neon-orange: #FF675E;
12+
--neon-orange: #ff675e;
1313

1414
/* Dark Theme Base Colors */
1515
--bg-primary: #0a0a1f;
@@ -20,7 +20,9 @@
2020
}
2121

2222
@layer base {
23-
*, *::before, *::after {
23+
*,
24+
*::before,
25+
*::after {
2426
box-sizing: border-box;
2527
}
2628

@@ -33,7 +35,8 @@
3335
padding: 0;
3436
}
3537

36-
html, body {
38+
html,
39+
body {
3740
@apply bg-[var(--bg-primary)] text-[var(--text-primary)];
3841

3942
font-family: 'Inter', system-ui, sans-serif;
@@ -43,4 +46,3 @@
4346
min-height: 100vh;
4447
}
4548
}
46-

demo/react-vite/tsconfig.app.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
"noUncheckedSideEffectImports": true,
2424

2525
"paths": {
26-
"@/*": ["src/*"]
26+
"@/*": ["./src/*"]
2727
}
2828
},
29-
"include": [
30-
"src"
31-
]
29+
"include": ["src"]
3230
}

demo/react-vite/tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"files": [],
3-
"references": [
4-
{ "path": "./tsconfig.app.json" },
5-
{ "path": "./tsconfig.node.json" }
6-
]
3+
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
74
}

demo/react-vite/tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"noUncheckedSideEffectImports": true,
2222

2323
"paths": {
24-
"@/*": ["src/*"]
24+
"@/*": ["./src/*"]
2525
}
2626
},
2727
"include": ["vite.config.ts"]

0 commit comments

Comments
 (0)