WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a717017

Browse files
fix formatter paths
1 parent 60ce728 commit a717017

File tree

3 files changed

+40
-40
lines changed

3 files changed

+40
-40
lines changed

browser/vite.config.ts

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,35 @@ import path from "path";
44
import { defineConfig } from "vite";
55

66
export default defineConfig({
7-
plugins: [
8-
react({
9-
babel: {
10-
plugins: [["babel-plugin-react-compiler", { target: "19" }]],
11-
},
12-
}),
13-
tailwindcss(),
14-
],
15-
resolve: {
16-
alias: {
17-
"@": path.resolve(__dirname, "./src"),
18-
},
19-
},
7+
plugins: [
8+
react({
9+
babel: {
10+
plugins: [["babel-plugin-react-compiler", { target: "19" }]],
11+
},
12+
}),
13+
tailwindcss(),
14+
],
15+
resolve: {
16+
alias: {
17+
"@": path.resolve(__dirname, "./src"),
18+
},
19+
},
2020

21-
server: {
22-
headers: {
23-
"Cross-Origin-Opener-Policy": "same-origin",
24-
"Cross-Origin-Embedder-Policy": "require-corp",
25-
},
26-
},
27-
build: {
28-
assetsDir: "",
29-
rollupOptions: {
30-
output: {
31-
manualChunks: {
32-
recharts: ["recharts"],
33-
"@xterm/xterm": ["@xterm/xterm"],
34-
},
35-
},
36-
},
37-
},
21+
server: {
22+
headers: {
23+
"Cross-Origin-Opener-Policy": "same-origin",
24+
"Cross-Origin-Embedder-Policy": "require-corp",
25+
},
26+
},
27+
build: {
28+
assetsDir: "",
29+
rollupOptions: {
30+
output: {
31+
manualChunks: {
32+
recharts: ["recharts"],
33+
"@xterm/xterm": ["@xterm/xterm"],
34+
},
35+
},
36+
},
37+
},
3838
});

eslint.config.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import tseslint from "typescript-eslint";
44

55
/** @type {import('eslint').Linter.Config[]} */
66
export default [
7-
{
8-
ignores: ["**/.*", "**/dist/*", "browser/**"],
9-
},
10-
{
11-
files: ["**/*.{js,mjs,cjs,ts}"],
12-
},
13-
{ languageOptions: { globals: globals.node } },
14-
pluginJs.configs.recommended,
15-
...tseslint.configs.recommended,
7+
{
8+
ignores: ["**/.*", "**/dist/*", "browser/**"],
9+
},
10+
{
11+
files: ["**/*.{js,mjs,cjs,ts}"],
12+
},
13+
{ languageOptions: { globals: globals.node } },
14+
pluginJs.configs.recommended,
15+
...tseslint.configs.recommended,
1616
];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"prepublish": "bun run build",
99
"build": "cd package && bun build.ts",
1010
"lint": "eslint .",
11-
"format": "biome format --write ./package/** ./browser/src/**",
11+
"format": "biome format --write .",
1212
"typecheck": "tsc --noEmit"
1313
},
1414
"bin": {

0 commit comments

Comments
 (0)