Skip to content

Commit f8429cc

Browse files
authored
Merge pull request #1 from Hello-Storage/staging
Staging
2 parents a062498 + a94b1c3 commit f8429cc

27 files changed

+3104
-177
lines changed

.env.example

Whitespace-only changes.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 hello.app
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

eslint.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
5+
6+
export default [
7+
{
8+
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
9+
...pluginReactConfig,
10+
settings: {
11+
react: {
12+
version: "detect",
13+
},
14+
},
15+
},
16+
{
17+
ignores: ["dist/*", "node_modules/*", "src-tauri/*"],
18+
},
19+
{
20+
rules: {
21+
"react/react-in-jsx-scope": "off",
22+
},
23+
},
24+
{ languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } } },
25+
{ languageOptions: { globals: globals.browser } },
26+
pluginJs.configs.recommended,
27+
...tseslint.configs.recommended,
28+
];

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
65
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Tauri + React + Typescript</title>
6+
<title>Hello Node</title>
87
</head>
98

109
<body>
1110
<div id="root"></div>
1211
<script type="module" src="/src/main.tsx"></script>
12+
<noscript>You need to enable JavaScript to run this app.</noscript>
1313
</body>
1414
</html>

package.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
11
{
22
"name": "hello-node",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "0.0.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
88
"build": "tsc && vite build",
99
"preview": "vite preview",
10-
"tauri": "tauri"
10+
"tauri": "tauri",
11+
"eslint": "eslint ."
1112
},
1213
"dependencies": {
14+
"@tauri-apps/api": "^1",
1315
"react": "^18.2.0",
1416
"react-dom": "^18.2.0",
15-
"@tauri-apps/api": "^1"
17+
"tauri-plugin-autostart-api": "github:tauri-apps/tauri-plugin-autostart#v1"
1618
},
1719
"devDependencies": {
20+
"@eslint/js": "^9.7.0",
21+
"@tauri-apps/cli": "^1",
22+
"@types/node": "^20.14.11",
1823
"@types/react": "^18.2.15",
1924
"@types/react-dom": "^18.2.7",
2025
"@vitejs/plugin-react": "^4.2.1",
26+
"eslint": "9.x",
27+
"eslint-plugin-react": "^7.34.4",
28+
"globals": "^15.8.0",
2129
"typescript": "^5.2.2",
22-
"vite": "^5.3.1",
23-
"@tauri-apps/cli": "^1"
30+
"typescript-eslint": "^7.16.1",
31+
"vite": "^5.3.1"
2432
}
2533
}

0 commit comments

Comments
 (0)