Skip to content

Commit

Permalink
build: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdevv committed Mar 14, 2024
1 parent 54c2b34 commit db9b9f4
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 26 deletions.
10 changes: 8 additions & 2 deletions packages/docs/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
4 changes: 2 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 --plugin-search-dir . --check .",
"format": "prettier --plugin-search-dir . --write ."
"lint": "prettier --check .",
"format": "prettier --write ."
},
"devDependencies": {
"@sveltejs/adapter-vercel": "^5.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/app.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en" style="scroll-behavior: smooth">
<head>
<meta charset="utf-8" />
Expand Down
18 changes: 9 additions & 9 deletions packages/docs/src/docs/components/clduploadbutton/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ order: 3
### Unsigned

<CldUploadButton
class="cldbutton"
onUpload={(result, widget) => { info = result?.info; widget.close(); }}
uploadPreset={PUBLIC_CLOUDINARY_UNSIGNED_UPLOAD_PRESET}
class="cldbutton"
onUpload={(result, widget) => { info = result?.info; widget.close(); }}
uploadPreset={PUBLIC_CLOUDINARY_UNSIGNED_UPLOAD_PRESET}
/>

<p><strong>URL:</strong> { info?.secure_url || 'Upload to see example result.' }</p>
Expand All @@ -41,17 +41,17 @@ order: 3
### Signed

<CldUploadButton
class="cldbutton"
signatureEndpoint="/api/sign-cloudinary-params"
onUpload={(result, widget) => { infoSecure = result?.info; widget.close(); }}
uploadPreset={PUBLIC_CLOUDINARY_SIGNED_UPLOAD_PRESET}
class="cldbutton"
signatureEndpoint="/api/sign-cloudinary-params"
onUpload={(result, widget) => { infoSecure = result?.info; widget.close(); }}
uploadPreset={PUBLIC_CLOUDINARY_SIGNED_UPLOAD_PRESET}
/>

<p><strong>URL:</strong> { infoSecure?.secure_url || 'Upload to see example result.' }</p>

```html
<CldUploadButton
signatureEndpoint="<Endpoint (ex: /api/sign-cloudinary-params)>"
uploadPreset="<Upload Preset>"
signatureEndpoint="<Endpoint (ex: /api/sign-cloudinary-params)>"
uploadPreset="<Upload Preset>"
/>
```
12 changes: 6 additions & 6 deletions packages/docs/src/docs/components/clduploadwidget/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ Use the following to generate an unsigned upload widget:
```

<CldUploadWidget
let:open let:isLoading
onUpload={(result, widget) => { infoUpload = result?.info; widget.close(); }}
uploadPreset={PUBLIC_CLOUDINARY_UNSIGNED_UPLOAD_PRESET}>
<button on:click|preventDefault={open} class="cldbutton">
Unsigned Upload
</button>
let:open let:isLoading
onUpload={(result, widget) => { infoUpload = result?.info; widget.close(); }}
uploadPreset={PUBLIC_CLOUDINARY_UNSIGNED_UPLOAD_PRESET}>
<button on:click|preventDefault={open} class="cldbutton">
Unsigned Upload
</button>
</CldUploadWidget>

<p><strong>URL:</strong> { infoUpload?.secure_url || 'Upload to see example result.' }</p>
Expand Down
4 changes: 3 additions & 1 deletion packages/docs/src/lib/components/Search.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@
padding: 0.5rem;
backdrop-filter: blur(1rem);
margin-top: 0.5rem;
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
box-shadow:
rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}
[data-svelte-typeahead][data-svelte-typeahead] .svelte-typeahead-list .selected,
[data-svelte-typeahead][data-svelte-typeahead] .svelte-typeahead-list .selected:hover {
Expand Down
10 changes: 8 additions & 2 deletions packages/playground/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
4 changes: 2 additions & 2 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 --plugin-search-dir . --check .",
"format": "prettier --plugin-search-dir . --write ."
"lint": "prettier --check .",
"format": "prettier --write ."
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/app.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en" class="dark">
<head>
<meta charset="utf-8" />
Expand Down

0 comments on commit db9b9f4

Please sign in to comment.