Skip to content

Commit 7ba8309

Browse files
authored
Fix/codebase linting (#73)
* fix: Check Lint / lint * fix: Check Lint / lint * fix: Check Lint / lint * fix: Check Lint / lint * fix: Check Code / lint * fix: Check Format / lint * fix: Check Code / lint * fix: Check Format / lint * fix: Check Code / lint * fix: Check Format / lint * fix: Check Code / lint * fix: Check Code / lint * fix: Check Format / lint * fix: unknown property warning * fix: unknown property warning * chore: improve args type
1 parent 6033e45 commit 7ba8309

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+972
-871
lines changed

.vscode/settings.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"eslint.workingDirectories": [
3-
{
4-
"mode": "auto"
5-
}
6-
]
2+
"eslint.workingDirectories": [
3+
{
4+
"mode": "auto"
5+
}
6+
]
77
}
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
import type { StorybookConfig } from '@storybook/sveltekit'
2-
import { join, dirname } from 'path'
1+
import type { StorybookConfig } from "@storybook/sveltekit";
2+
import { join, dirname } from "path";
33

44
function getAbsolutePath(value: string): any {
5-
return dirname(require.resolve(join(value, 'package.json')))
5+
return dirname(require.resolve(join(value, "package.json")));
66
}
77

88
const config: StorybookConfig = {
9-
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|ts)'],
10-
addons: [
11-
getAbsolutePath('@storybook/addon-essentials'),
12-
getAbsolutePath('@chromatic-com/storybook'),
13-
getAbsolutePath('@storybook/experimental-addon-test'),
14-
],
15-
framework: {
16-
name: '@storybook/sveltekit',
17-
options: {},
18-
},
9+
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|ts)"],
10+
addons: [
11+
getAbsolutePath("@storybook/addon-essentials"),
12+
getAbsolutePath("@chromatic-com/storybook"),
13+
getAbsolutePath("@storybook/experimental-addon-test"),
14+
],
15+
framework: {
16+
name: "@storybook/sveltekit",
17+
options: {},
18+
},
1919

20-
staticDirs: ['../static'],
21-
}
22-
export default config
20+
staticDirs: ["../static"],
21+
};
22+
export default config;

infrastructure/eid-wallet/.storybook/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ const preview: Preview = {
1212
},
1313
};
1414

15-
export default preview;
15+
export default preview;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { beforeAll } from 'vitest';
2-
import { setProjectAnnotations } from '@storybook/sveltekit';
3-
import * as projectAnnotations from './preview';
1+
import { beforeAll } from "vitest";
2+
import { setProjectAnnotations } from "@storybook/sveltekit";
3+
import * as projectAnnotations from "./preview";
44

55
// This is an important step to apply the right configuration when testing your stories.
66
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
77
const project = setProjectAnnotations([projectAnnotations]);
88

9-
beforeAll(project.beforeAll);
9+
beforeAll(project.beforeAll);
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"recommendations": [
3-
"svelte.svelte-vscode",
4-
"tauri-apps.tauri-vscode",
5-
"rust-lang.rust-analyzer"
6-
]
2+
"recommendations": [
3+
"svelte.svelte-vscode",
4+
"tauri-apps.tauri-vscode",
5+
"rust-lang.rust-analyzer"
6+
]
77
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"svelte.enable-ts-plugin": true
2+
"svelte.enable-ts-plugin": true
33
}
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3-
"overrides": [
4-
{
5-
"include": ["*.svelte", "*.astro", "*.vue"],
6-
"linter": {
7-
"rules": {
8-
"style": {
9-
"useConst": "off",
10-
"useImportType": "off"
11-
}
12-
}
13-
}
14-
}
15-
]
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"overrides": [
4+
{
5+
"include": ["*.svelte", "*.astro", "*.vue"],
6+
"linter": {
7+
"rules": {
8+
"style": {
9+
"useConst": "off",
10+
"useImportType": "off"
11+
}
12+
}
13+
}
14+
}
15+
]
1616
}
Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
11
{
2-
"name": "eid-wallet",
3-
"version": "0.1.0",
4-
"description": "",
5-
"type": "module",
6-
"scripts": {
7-
"dev": "vite dev",
8-
"build": "vite build",
9-
"preview": "vite preview",
10-
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && npx @biomejs/biome check ./src",
11-
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
12-
"format": "npx @biomejs/biome format --write ./src",
13-
"check-format": "npx @biomejs/biome format ./src",
14-
"lint": "npx @biomejs/biome lint --write ./src",
15-
"check-lint": "npx @biomejs/biome lint ./src",
16-
"tauri": "tauri",
17-
"storybook": "svelte-kit sync && storybook dev -p 6006",
18-
"build-storybook": "storybook build"
19-
},
20-
"license": "MIT",
21-
"dependencies": {
22-
"@biomejs/biome": "^1.9.4",
23-
"@hugeicons/core-free-icons": "^1.0.13",
24-
"@hugeicons/svelte": "^1.0.2",
25-
"@tailwindcss/container-queries": "^0.1.1",
26-
"@tauri-apps/api": "^2",
27-
"@tauri-apps/plugin-opener": "^2",
28-
"clsx": "^2.1.1",
29-
"flag-icons": "^7.3.2",
30-
"tailwind-merge": "^3.0.2"
31-
},
32-
"devDependencies": {
33-
"@chromatic-com/storybook": "^3",
34-
"@storybook/addon-essentials": "^8.6.7",
35-
"@storybook/addon-interactions": "^8.6.7",
36-
"@storybook/blocks": "^8.6.7",
37-
"@storybook/experimental-addon-test": "^8.6.7",
38-
"@storybook/svelte": "^8.6.7",
39-
"@storybook/sveltekit": "^8.6.7",
40-
"@storybook/test": "^8.6.7",
41-
"@storybook/testing-library": "^0.2.2",
42-
"@sveltejs/adapter-static": "^3.0.6",
43-
"@sveltejs/kit": "^2.9.0",
44-
"@sveltejs/vite-plugin-svelte": "^5.0.0",
45-
"@tailwindcss/forms": "^0.5.10",
46-
"@tailwindcss/typography": "^0.5.16",
47-
"@tailwindcss/vite": "^4.0.14",
48-
"@tauri-apps/cli": "^2",
49-
"@types/node": "^22.13.10",
50-
"@vitest/browser": "^3.0.9",
51-
"@vitest/coverage-v8": "^3.0.9",
52-
"autoprefixer": "^10.4.21",
53-
"cupertino-pane": "^1.4.22",
54-
"daisyui": "^5.0.6",
55-
"playwright": "^1.51.1",
56-
"postcss": "^8.5.3",
57-
"storybook": "^8.6.7",
58-
"svelte": "^5.0.0",
59-
"svelte-check": "^4.0.0",
60-
"svelte-gestures": "^5.1.3",
61-
"tailwindcss": "^4.0.14",
62-
"typescript": "~5.6.2",
63-
"vite": "^6.0.3",
64-
"vitest": "^3.0.9"
65-
}
2+
"name": "eid-wallet",
3+
"version": "0.1.0",
4+
"description": "",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite dev",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && npx @biomejs/biome check ./src",
11+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
12+
"format": "npx @biomejs/biome format --write ./src",
13+
"check-format": "npx @biomejs/biome format ./src",
14+
"lint": "npx @biomejs/biome lint --write ./src",
15+
"check-lint": "npx @biomejs/biome lint ./src",
16+
"tauri": "tauri",
17+
"storybook": "svelte-kit sync && storybook dev -p 6006",
18+
"build-storybook": "storybook build"
19+
},
20+
"license": "MIT",
21+
"dependencies": {
22+
"@biomejs/biome": "^1.9.4",
23+
"@hugeicons/core-free-icons": "^1.0.13",
24+
"@hugeicons/svelte": "^1.0.2",
25+
"@tailwindcss/container-queries": "^0.1.1",
26+
"@tauri-apps/api": "^2",
27+
"@tauri-apps/plugin-opener": "^2",
28+
"clsx": "^2.1.1",
29+
"flag-icons": "^7.3.2",
30+
"tailwind-merge": "^3.0.2"
31+
},
32+
"devDependencies": {
33+
"@chromatic-com/storybook": "^3",
34+
"@storybook/addon-essentials": "^8.6.7",
35+
"@storybook/addon-interactions": "^8.6.7",
36+
"@storybook/blocks": "^8.6.7",
37+
"@storybook/experimental-addon-test": "^8.6.7",
38+
"@storybook/svelte": "^8.6.7",
39+
"@storybook/sveltekit": "^8.6.7",
40+
"@storybook/test": "^8.6.7",
41+
"@storybook/testing-library": "^0.2.2",
42+
"@sveltejs/adapter-static": "^3.0.6",
43+
"@sveltejs/kit": "^2.9.0",
44+
"@sveltejs/vite-plugin-svelte": "^5.0.0",
45+
"@tailwindcss/forms": "^0.5.10",
46+
"@tailwindcss/typography": "^0.5.16",
47+
"@tailwindcss/vite": "^4.0.14",
48+
"@tauri-apps/cli": "^2",
49+
"@types/node": "^22.13.10",
50+
"@vitest/browser": "^3.0.9",
51+
"@vitest/coverage-v8": "^3.0.9",
52+
"autoprefixer": "^10.4.21",
53+
"cupertino-pane": "^1.4.22",
54+
"daisyui": "^5.0.6",
55+
"playwright": "^1.51.1",
56+
"postcss": "^8.5.3",
57+
"storybook": "^8.6.7",
58+
"svelte": "^5.0.0",
59+
"svelte-check": "^4.0.0",
60+
"svelte-gestures": "^5.1.3",
61+
"tailwindcss": "^4.0.14",
62+
"typescript": "~5.6.2",
63+
"vite": "^6.0.3",
64+
"vitest": "^3.0.9"
65+
}
6666
}
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
2-
"$schema": "../gen/schemas/desktop-schema.json",
3-
"identifier": "default",
4-
"description": "Capability for the main window",
5-
"windows": ["main"],
6-
"permissions": [
7-
"core:default",
8-
"opener:default"
9-
]
2+
"$schema": "../gen/schemas/desktop-schema.json",
3+
"identifier": "default",
4+
"description": "Capability for the main window",
5+
"windows": ["main"],
6+
"permissions": ["core:default", "opener:default"]
107
}
Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,101 @@
1-
{"$schema":"https://schema.tauri.app/config/2","productName":"eid-wallet","version":"0.1.0","identifier":"com.eid-wallet.app","app":{"windows":[{"label":"main","create":true,"url":"index.html","dragDropEnabled":true,"center":false,"width":800.0,"height":600.0,"resizable":true,"maximizable":true,"minimizable":true,"closable":true,"title":"eid-wallet","fullscreen":false,"focus":true,"transparent":false,"maximized":false,"visible":true,"decorations":true,"alwaysOnBottom":false,"alwaysOnTop":false,"visibleOnAllWorkspaces":false,"contentProtected":false,"skipTaskbar":false,"titleBarStyle":"Visible","hiddenTitle":false,"acceptFirstMouse":false,"shadow":true,"incognito":false,"zoomHotkeysEnabled":false,"browserExtensionsEnabled":false,"useHttpsScheme":false}],"security":{"freezePrototype":false,"dangerousDisableAssetCspModification":false,"assetProtocol":{"scope":[],"enable":false},"pattern":{"use":"brownfield"},"capabilities":[]},"macOSPrivateApi":false,"withGlobalTauri":false,"enableGTKAppId":false},"build":{"devUrl":"http://192.168.35.49:1420/","frontendDist":"../build","beforeDevCommand":"pnpm dev","beforeBuildCommand":"pnpm build"},"bundle":{"active":true,"targets":"all","createUpdaterArtifacts":false,"icon":["icons/32x32.png","icons/128x128.png","icons/[email protected]","icons/icon.icns","icons/icon.ico"],"useLocalToolsDir":false,"windows":{"digestAlgorithm":null,"certificateThumbprint":null,"timestampUrl":null,"tsp":false,"webviewInstallMode":{"type":"downloadBootstrapper","silent":true},"allowDowngrades":true,"wix":null,"nsis":null,"signCommand":null},"linux":{"appimage":{"bundleMediaFramework":false,"files":{}},"deb":{"files":{}},"rpm":{"release":"1","epoch":0,"files":{}}},"macOS":{"files":{},"minimumSystemVersion":"10.13","hardenedRuntime":true,"dmg":{"windowSize":{"width":660,"height":400},"appPosition":{"x":180,"y":170},"applicationFolderPosition":{"x":480,"y":170}}},"iOS":{"minimumSystemVersion":"13.0"},"android":{"minSdkVersion":24}},"plugins":{}}
1+
{
2+
"$schema": "https://schema.tauri.app/config/2",
3+
"productName": "eid-wallet",
4+
"version": "0.1.0",
5+
"identifier": "com.eid-wallet.app",
6+
"app": {
7+
"windows": [
8+
{
9+
"label": "main",
10+
"create": true,
11+
"url": "index.html",
12+
"dragDropEnabled": true,
13+
"center": false,
14+
"width": 800.0,
15+
"height": 600.0,
16+
"resizable": true,
17+
"maximizable": true,
18+
"minimizable": true,
19+
"closable": true,
20+
"title": "eid-wallet",
21+
"fullscreen": false,
22+
"focus": true,
23+
"transparent": false,
24+
"maximized": false,
25+
"visible": true,
26+
"decorations": true,
27+
"alwaysOnBottom": false,
28+
"alwaysOnTop": false,
29+
"visibleOnAllWorkspaces": false,
30+
"contentProtected": false,
31+
"skipTaskbar": false,
32+
"titleBarStyle": "Visible",
33+
"hiddenTitle": false,
34+
"acceptFirstMouse": false,
35+
"shadow": true,
36+
"incognito": false,
37+
"zoomHotkeysEnabled": false,
38+
"browserExtensionsEnabled": false,
39+
"useHttpsScheme": false
40+
}
41+
],
42+
"security": {
43+
"freezePrototype": false,
44+
"dangerousDisableAssetCspModification": false,
45+
"assetProtocol": { "scope": [], "enable": false },
46+
"pattern": { "use": "brownfield" },
47+
"capabilities": []
48+
},
49+
"macOSPrivateApi": false,
50+
"withGlobalTauri": false,
51+
"enableGTKAppId": false
52+
},
53+
"build": {
54+
"devUrl": "http://192.168.35.49:1420/",
55+
"frontendDist": "../build",
56+
"beforeDevCommand": "pnpm dev",
57+
"beforeBuildCommand": "pnpm build"
58+
},
59+
"bundle": {
60+
"active": true,
61+
"targets": "all",
62+
"createUpdaterArtifacts": false,
63+
"icon": [
64+
"icons/32x32.png",
65+
"icons/128x128.png",
66+
67+
"icons/icon.icns",
68+
"icons/icon.ico"
69+
],
70+
"useLocalToolsDir": false,
71+
"windows": {
72+
"digestAlgorithm": null,
73+
"certificateThumbprint": null,
74+
"timestampUrl": null,
75+
"tsp": false,
76+
"webviewInstallMode": { "type": "downloadBootstrapper", "silent": true },
77+
"allowDowngrades": true,
78+
"wix": null,
79+
"nsis": null,
80+
"signCommand": null
81+
},
82+
"linux": {
83+
"appimage": { "bundleMediaFramework": false, "files": {} },
84+
"deb": { "files": {} },
85+
"rpm": { "release": "1", "epoch": 0, "files": {} }
86+
},
87+
"macOS": {
88+
"files": {},
89+
"minimumSystemVersion": "10.13",
90+
"hardenedRuntime": true,
91+
"dmg": {
92+
"windowSize": { "width": 660, "height": 400 },
93+
"appPosition": { "x": 180, "y": 170 },
94+
"applicationFolderPosition": { "x": 480, "y": 170 }
95+
}
96+
},
97+
"iOS": { "minimumSystemVersion": "13.0" },
98+
"android": { "minSdkVersion": 24 }
99+
},
100+
"plugins": {}
101+
}

0 commit comments

Comments
 (0)