Skip to content

Commit

Permalink
react: Format config files too
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Feb 25, 2024
1 parent 36973ff commit 77f6fb0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 30 deletions.
29 changes: 15 additions & 14 deletions react/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="This is a demo for the @giscus/react component."
/>
<title>@giscus/react demo</title>
</head>

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="This is a demo for the @giscus/react component." />
<title>@giscus/react demo</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"preview": "vite preview",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"format": "prettier src --check",
"format:fix": "prettier src --write"
"format": "prettier . --check",
"format:fix": "prettier . --write"
},
"dependencies": {
"giscus": "^1.4.0"
Expand Down
10 changes: 2 additions & 8 deletions react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": [
"DOM",
"DOM.Iterable",
"ESNext"
],
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": false,
"esModuleInterop": false,
Expand All @@ -20,9 +16,7 @@
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"src"
],
"include": ["src"],
"references": [
{
"path": "./tsconfig.node.json"
Expand Down
8 changes: 2 additions & 6 deletions react/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
"module": "esnext",
"moduleResolution": "node"
},
"lib": [
"node"
],
"include": [
"vite.config.mts"
]
"lib": ["node"],
"include": ["vite.config.mts"]
}

0 comments on commit 77f6fb0

Please sign in to comment.