From 842f82d4cd58186ab8a380ce11710284a6bb1b9b Mon Sep 17 00:00:00 2001 From: Dawid Urbas Date: Fri, 8 Dec 2023 13:18:20 +0000 Subject: [PATCH] Fix prettier --- .lintstagedrc | 2 +- package.json | 4 +- src/lib/const/secure-store.ts | 1 - src/lib/helpers/other.ts | 1 - src/routes/setup-pass/import-key/+page.svelte | 6 +-- static/img/arrow-left.svg | 2 +- static/img/arrow-right.svg | 20 ++++++--- static/img/check.svg | 10 ++++- static/img/checkbox.svg | 12 ++++-- static/img/close.svg | 6 ++- static/img/cloud.svg | 26 +++++++----- static/img/download.svg | 41 +++++++++++------- static/img/holo_logo.svg | 7 +++- static/img/logo.svg | 7 +++- static/img/noun.svg | 15 +++++-- static/img/padlock.svg | 42 +++++++++++-------- static/img/question.svg | 29 ++++++++----- static/img/setup.svg | 12 ++++-- 18 files changed, 159 insertions(+), 84 deletions(-) diff --git a/.lintstagedrc b/.lintstagedrc index 7141e4d..86b143e 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,3 +1,3 @@ { - "*.{js,ts,svelte,postcss,json}": ["eslint", "prettier --write ."] + "src/**/*.{js,ts,svelte,json}": ["eslint", "prettier --write ."] } diff --git a/package.json b/package.json index 6b0ef11..6411bf5 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "prettier . --check . && eslint .", - "format": "prettier . --write .", + "lint": "prettier --check 'src/**/*.{js,ts,svelte,json}' && eslint 'src/**/*.{js,ts,svelte}'", + "format": "prettier --write 'src/**/*.{js,ts,svelte,json}'", "prepare": "husky install" }, "devDependencies": { diff --git a/src/lib/const/secure-store.ts b/src/lib/const/secure-store.ts index cb41a1a..05af1a4 100644 --- a/src/lib/const/secure-store.ts +++ b/src/lib/const/secure-store.ts @@ -1,6 +1,5 @@ export const SESSION = 'session'; export const LOCAL = 'local'; - export const SESSION_DATA = 'sessionData'; export const PASSWORD = 'password'; export const DEVICE_KEY = 'deviceKey'; diff --git a/src/lib/helpers/other.ts b/src/lib/helpers/other.ts index 207d2c3..13cc130 100644 --- a/src/lib/helpers/other.ts +++ b/src/lib/helpers/other.ts @@ -1,4 +1,3 @@ export const isChromeDefined = () => typeof chrome !== 'undefined'; - export const isChromeStorageSafe = () => isChromeDefined() && chrome.storage && chrome.storage.session; diff --git a/src/routes/setup-pass/import-key/+page.svelte b/src/routes/setup-pass/import-key/+page.svelte index 0fdc7e4..573dca4 100644 --- a/src/routes/setup-pass/import-key/+page.svelte +++ b/src/routes/setup-pass/import-key/+page.svelte @@ -18,13 +18,13 @@ Import Your Device Seed
{#if file} -
+

{file?.name}

Checkbox
diff --git a/static/img/arrow-left.svg b/static/img/arrow-left.svg index 6435388..4112253 100644 --- a/static/img/arrow-left.svg +++ b/static/img/arrow-left.svg @@ -1,3 +1,3 @@ - + diff --git a/static/img/arrow-right.svg b/static/img/arrow-right.svg index 13da9e2..13af9c9 100644 --- a/static/img/arrow-right.svg +++ b/static/img/arrow-right.svg @@ -1,8 +1,16 @@ - - - - - - + + + + + + diff --git a/static/img/check.svg b/static/img/check.svg index 4c08d82..f44b2d5 100644 --- a/static/img/check.svg +++ b/static/img/check.svg @@ -1,4 +1,10 @@ - - + + diff --git a/static/img/checkbox.svg b/static/img/checkbox.svg index 943f519..2408815 100644 --- a/static/img/checkbox.svg +++ b/static/img/checkbox.svg @@ -1,5 +1,11 @@ - - - + + + diff --git a/static/img/close.svg b/static/img/close.svg index b363253..54a1855 100644 --- a/static/img/close.svg +++ b/static/img/close.svg @@ -1,3 +1,7 @@ - + diff --git a/static/img/cloud.svg b/static/img/cloud.svg index 115969e..9745d0a 100644 --- a/static/img/cloud.svg +++ b/static/img/cloud.svg @@ -1,12 +1,18 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/static/img/download.svg b/static/img/download.svg index e705e1c..39be6ae 100644 --- a/static/img/download.svg +++ b/static/img/download.svg @@ -1,17 +1,28 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/static/img/holo_logo.svg b/static/img/holo_logo.svg index cb0a92f..2a8ba06 100644 --- a/static/img/holo_logo.svg +++ b/static/img/holo_logo.svg @@ -1,4 +1,7 @@ - - + + diff --git a/static/img/logo.svg b/static/img/logo.svg index aa0ee42..9a75d3d 100644 --- a/static/img/logo.svg +++ b/static/img/logo.svg @@ -1,4 +1,7 @@ - - + + diff --git a/static/img/noun.svg b/static/img/noun.svg index b0f80fd..cdc9b95 100644 --- a/static/img/noun.svg +++ b/static/img/noun.svg @@ -1,5 +1,14 @@ - - - + + + diff --git a/static/img/padlock.svg b/static/img/padlock.svg index 825f436..a44c600 100644 --- a/static/img/padlock.svg +++ b/static/img/padlock.svg @@ -1,20 +1,26 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/static/img/question.svg b/static/img/question.svg index 367115c..1ab69aa 100644 --- a/static/img/question.svg +++ b/static/img/question.svg @@ -1,12 +1,21 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/static/img/setup.svg b/static/img/setup.svg index bc46ede..296102f 100644 --- a/static/img/setup.svg +++ b/static/img/setup.svg @@ -1,5 +1,11 @@ - - - + + +