Skip to content

Commit 0dd9a7d

Browse files
committed
Support remote upstream (#31)
* Use collie lib * Add server url key to settings table * Sync backend with lib * Support upstream * Upgrade eslint * Fix lint issues * Configure Biome for formatting * Fix path of collie lib * Add bundled feature to rusqlite
1 parent dadfbb2 commit 0dd9a7d

37 files changed

+3705
-2977
lines changed

.eslintrc

Lines changed: 0 additions & 14 deletions
This file was deleted.

biome.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
3+
"formatter": {
4+
"enabled": true,
5+
"indentStyle": "space",
6+
"indentWidth": 2,
7+
"lineWidth": 140
8+
},
9+
"javascript": {
10+
"formatter": {
11+
"quoteStyle": "double",
12+
"semicolons": "always"
13+
}
14+
},
15+
"linter": {
16+
"enabled": false
17+
}
18+
}

eslint.config.mjs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import js from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
import solid from "eslint-plugin-solid/configs/typescript";
4+
import globals from "globals";
5+
6+
export default tseslint.config(
7+
js.configs.recommended,
8+
...tseslint.configs.recommended,
9+
{
10+
files: ["**/*.{ts,tsx}"],
11+
...solid,
12+
languageOptions: {
13+
globals: {
14+
...globals.browser,
15+
},
16+
parserOptions: {
17+
project: "tsconfig.json",
18+
},
19+
},
20+
rules: {
21+
"no-shadow": "off",
22+
"@typescript-eslint/no-shadow": "error",
23+
"no-unused-vars": "off",
24+
"@typescript-eslint/no-unused-vars": "error",
25+
},
26+
},
27+
{
28+
ignores: ["dist/**", "node_modules/**", "src-tauri/**"],
29+
}
30+
);

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"dev": "vite",
88
"build": "vite build",
99
"serve": "vite preview",
10-
"lint": "eslint --ext .ts,.tsx --ignore-path=.gitignore src/",
10+
"lint": "eslint src/",
11+
"format": "biome format --write src/",
1112
"tauri": "tauri"
1213
},
1314
"license": "GPL-3.0",
@@ -19,13 +20,14 @@
1920
"solid-js": "^1.9.5"
2021
},
2122
"devDependencies": {
23+
"@biomejs/biome": "^2.0.0",
2224
"@tauri-apps/cli": "^1.6.3",
2325
"@types/dompurify": "^3.2.0",
24-
"@typescript-eslint/eslint-plugin": "^6.21.0",
25-
"@typescript-eslint/parser": "^6.21.0",
26-
"eslint": "^8.57.1",
27-
"eslint-plugin-solid": "^0.13.2",
26+
"eslint": "^9.15.0",
27+
"eslint-plugin-solid": "^0.14.5",
28+
"globals": "^15.12.0",
2829
"typescript": "^5.8.3",
30+
"typescript-eslint": "^8.15.0",
2931
"vite": "^4.5.13",
3032
"vite-plugin-solid": "^2.11.6"
3133
}

0 commit comments

Comments
 (0)