Skip to content

Commit b02d95a

Browse files
committedJul 2, 2024·
style: run prettier
1 parent b8a6881 commit b02d95a

File tree

6 files changed

+48
-47
lines changed

6 files changed

+48
-47
lines changed
 

‎.eslintrc.cjs

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ module.exports = {
22
root: true,
33
env: { browser: true, es2020: true },
44
extends: [
5-
'eslint:recommended',
6-
'plugin:@typescript-eslint/recommended',
7-
'plugin:react-hooks/recommended',
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:react-hooks/recommended",
88
],
9-
ignorePatterns: ['dist', '.eslintrc.cjs'],
10-
parser: '@typescript-eslint/parser',
11-
plugins: ['react-refresh'],
9+
ignorePatterns: ["dist", ".eslintrc.cjs"],
10+
parser: "@typescript-eslint/parser",
11+
plugins: ["react-refresh"],
1212
rules: {
13-
'react-refresh/only-export-components': [
14-
'warn',
13+
"react-refresh/only-export-components": [
14+
"warn",
1515
{ allowConstantExport: true },
1616
],
1717
},
18-
}
18+
};

‎.github/workflows/actions.yml

+18-18
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Deploy Bun site
22

33
on:
44
push:
5-
branches: [ "_" ]
5+
branches: ["_"]
66
pull_request:
7-
branches: [ "_" ]
7+
branches: ["_"]
88

99
permissions:
1010
contents: read
@@ -15,19 +15,19 @@ jobs:
1515
build:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
19-
- uses: oven-sh/setup-bun@v2
20-
with:
21-
bun-version: latest
22-
- run: bun install
23-
- run: bun run build
24-
- name: Setup Pages
25-
uses: actions/configure-pages@v5
26-
- name: Upload artifact
27-
uses: actions/upload-pages-artifact@v3
28-
with:
29-
# Upload entire repository
30-
path: 'dist'
31-
- name: Deploy to GitHub Pages
32-
id: deployment
33-
uses: actions/deploy-pages@v4
18+
- uses: actions/checkout@v4
19+
- uses: oven-sh/setup-bun@v2
20+
with:
21+
bun-version: latest
22+
- run: bun install
23+
- run: bun run build
24+
- name: Setup Pages
25+
uses: actions/configure-pages@v5
26+
- name: Upload artifact
27+
uses: actions/upload-pages-artifact@v3
28+
with:
29+
# Upload entire repository
30+
path: "dist"
31+
- name: Deploy to GitHub Pages
32+
id: deployment
33+
uses: actions/deploy-pages@v4

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ If you are developing a production application, we recommend updating the config
1717
export default {
1818
// other rules...
1919
parserOptions: {
20-
ecmaVersion: 'latest',
21-
sourceType: 'module',
22-
project: ['./tsconfig.json', './tsconfig.node.json'],
20+
ecmaVersion: "latest",
21+
sourceType: "module",
22+
project: ["./tsconfig.json", "./tsconfig.node.json"],
2323
tsconfigRootDir: __dirname,
2424
},
25-
}
25+
};
2626
```
2727

2828
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`

‎src/App.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { useState } from 'react'
2-
import reactLogo from './assets/react.svg'
3-
import viteLogo from '/vite.svg'
4-
import './App.css'
1+
import { useState } from "react";
2+
import reactLogo from "./assets/react.svg";
3+
import viteLogo from "/vite.svg";
4+
import "./App.css";
55

66
function App() {
7-
const [count, setCount] = useState(0)
7+
const [count, setCount] = useState(0);
88

99
return (
1010
<>
@@ -29,7 +29,7 @@ function App() {
2929
Click on the Vite and React logos to learn more
3030
</p>
3131
</>
32-
)
32+
);
3333
}
3434

35-
export default App
35+
export default App;

‎src/main.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import React from 'react'
2-
import ReactDOM from 'react-dom/client'
3-
import App from './App.tsx'
4-
import './index.css'
1+
import React from "react";
2+
import ReactDOM from "react-dom/client";
3+
import App from "./App.tsx";
4+
import "./index.css";
55

6-
ReactDOM.createRoot(document.getElementById('root')!).render(
6+
ReactDOM.createRoot(document.getElementById("root")!).render(
77
<React.StrictMode>
88
<App />
99
</React.StrictMode>,
10-
)
10+
);

‎vite.config.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { defineConfig } from 'vite'
2-
import react from '@vitejs/plugin-react'
1+
import { defineConfig } from "vite";
2+
import react from "@vitejs/plugin-react";
33

44
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7-
})
7+
base: "./",
8+
});

0 commit comments

Comments
 (0)
Please sign in to comment.