Skip to content

Commit 7886f20

Browse files
committed
Bootstrap new Vite React-TS app
1 parent a6b18cb commit 7886f20

15 files changed

+867
-12
lines changed

.editorconfig

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
# EditorConfig helps developers define and maintain consistent
2-
# coding styles between different editors and IDEs
3-
# editorconfig.org
1+
# EditorConfig is awesome: http://EditorConfig.org
42

3+
# top-most EditorConfig file
54
root = true
65

7-
6+
# Unix-style newlines with a newline ending every file
87
[*]
98
end_of_line = lf
10-
charset = utf-8
11-
trim_trailing_whitespace = true
129
insert_final_newline = true
10+
11+
# 2 space indentation
12+
[*.{js,json}]
13+
charset = utf-8
1314
indent_style = space
1415
indent_size = 2
15-
16-
[*.hbs]
17-
insert_final_newline = false
18-
19-
[*.{diff,md}]
20-
trim_trailing_whitespace = false
16+
trim_trailing_whitespace = true

.prettierrc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"jsxBracketSameLine": true
4+
}

apollo.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
client: {
3+
service: {
4+
name: 'kitsu',
5+
url: 'https://kitsu.io/api/graphql',
6+
},
7+
},
8+
};

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite App</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)