Skip to content

Commit 43ddfe4

Browse files
authored
Merge pull request #12 from skundu42/new-features
v0.6.0 release
2 parents 12e3a82 + 3b36c20 commit 43ddfe4

35 files changed

Lines changed: 4218 additions & 118 deletions

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ jobs:
5050
- name: Typecheck
5151
run: npm run typecheck
5252

53+
- name: Lint
54+
run: npm run lint
55+
56+
- name: Frontend tests
57+
run: npm run test:run
58+
5359
- name: Frontend build
5460
run: npm run build
5561

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dist
2+
coverage
3+
node_modules
4+
src-tauri
5+
package-lock.json

.prettierrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"singleQuote": false,
4+
"trailingComma": "all",
5+
"tabWidth": 2,
6+
"printWidth": 80
7+
}

eslint.config.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import js from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
import reactHooks from "eslint-plugin-react-hooks";
4+
import reactRefresh from "eslint-plugin-react-refresh";
5+
import prettier from "eslint-config-prettier";
6+
import globals from "globals";
7+
8+
export default tseslint.config(
9+
{ ignores: ["dist", "coverage", "src-tauri", "node_modules"] },
10+
js.configs.recommended,
11+
...tseslint.configs.recommended,
12+
{
13+
files: ["src/**/*.{ts,tsx}"],
14+
languageOptions: {
15+
ecmaVersion: 2022,
16+
globals: { ...globals.browser },
17+
},
18+
plugins: {
19+
"react-hooks": reactHooks,
20+
"react-refresh": reactRefresh,
21+
},
22+
rules: {
23+
...reactHooks.configs.recommended.rules,
24+
"react-refresh/only-export-components": [
25+
"warn",
26+
{ allowConstantExport: true },
27+
],
28+
"@typescript-eslint/no-unused-vars": [
29+
"warn",
30+
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
31+
],
32+
"@typescript-eslint/no-explicit-any": "warn",
33+
},
34+
},
35+
{
36+
files: ["src/test/**", "src/**/*.{test,spec}.{ts,tsx}"],
37+
languageOptions: {
38+
globals: { ...globals.browser, ...globals.node },
39+
},
40+
},
41+
{
42+
files: ["*.config.{js,ts}"],
43+
languageOptions: { globals: { ...globals.node } },
44+
},
45+
prettier,
46+
);

0 commit comments

Comments
 (0)