Skip to content

Commit 0f052b0

Browse files
committed
Fix linter
Signed-off-by: Marcos Candeia <[email protected]>
1 parent e92d049 commit 0f052b0

Some content is hidden

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

62 files changed

+2137
-214
lines changed

.github/workflows/publish.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Publish package
19+
run: npx jsr publish --allow-slow-types
20+
21+
- name: Publish script package
22+
run: cd scripts/ && npx jsr publish

.github/workflows/update.yml

-20
This file was deleted.

admin/deno.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "@deco/admin",
3+
"exports": {
4+
".": "./widgets.ts"
5+
},
6+
"imports": {
7+
"$fresh/": "https://denopkg.com/denoland/[email protected]/",
8+
"@cliffy/prompt": "jsr:@cliffy/prompt@^1.0.0-rc.5",
9+
"@core/asyncutil": "jsr:@core/asyncutil@^1.0.0",
10+
"@deco/deco": "jsr:@deco/deco@^1.86.6-alpha.4",
11+
"@deco/durable": "jsr:@deco/durable@^0.5.3",
12+
"@deco/inspect-vscode": "jsr:@deco/inspect-vscode@^0.2.1",
13+
"@deco/warp": "jsr:@deco/[email protected]",
14+
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
15+
"@preact/signals-core": "https://esm.sh/@preact/[email protected]",
16+
"@std/assert": "jsr:@std/assert@^1.0.2",
17+
"@std/async": "jsr:@std/async@^1.0.3",
18+
"@std/crypto": "jsr:@std/crypto@^1.0.2",
19+
"@std/datetime": "jsr:@std/datetime@^0.224.0",
20+
"@std/encoding": "jsr:@std/encoding@^1.0.1",
21+
"@std/flags": "jsr:@std/flags@^0.224.0",
22+
"@std/fmt": "jsr:@std/fmt@^1.0.0",
23+
"@std/fs": "jsr:@std/fs@^1.0.1",
24+
"@std/http": "jsr:@std/http@^1.0.2",
25+
"@std/io": "jsr:@std/io@^0.224.4",
26+
"@std/log": "jsr:@std/log@^0.224.5",
27+
"@std/media-types": "jsr:@std/media-types@^1.0.2",
28+
"@std/path": "jsr:@std/path@^1.0.2",
29+
"@std/semver": "jsr:@std/semver@^0.224.3",
30+
"@std/streams": "jsr:@std/streams@^1.0.0",
31+
"@std/testing": "jsr:@std/testing@^1.0.0",
32+
"@zaubrik/djwt": "jsr:@zaubrik/djwt@^3.0.2",
33+
"partytown/": "https://deno.land/x/[email protected]/",
34+
"preact": "npm:[email protected]",
35+
"preact-render-to-string": "npm:[email protected]",
36+
"std/": "https://deno.land/[email protected]/"
37+
},
38+
"version": "0.54.5-alpha.1"
39+
}

admin/types.ts

-48
This file was deleted.

analytics/components/DecoAnalytics.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Head } from "$fresh/runtime.ts";
1+
import { Head } from "@deco/deco";
22
import { useScriptAsDataURI } from "@deco/deco/hooks";
33

44
export interface Props {

blog/deno.json

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "@deco/blog",
3+
"exports": {
4+
".": "./mod.ts",
5+
"./manifest": "./manifest.gen.ts"
6+
},
7+
"imports": {
8+
"$fresh/": "https://denopkg.com/denoland/[email protected]/",
9+
"@cliffy/prompt": "jsr:@cliffy/prompt@^1.0.0-rc.5",
10+
"@core/asyncutil": "jsr:@core/asyncutil@^1.0.0",
11+
"@deco/deco": "jsr:@deco/deco@^1.86.6-alpha.4",
12+
"@deco/durable": "jsr:@deco/durable@^0.5.3",
13+
"@deco/inspect-vscode": "jsr:@deco/inspect-vscode@^0.2.1",
14+
"@deco/warp": "jsr:@deco/[email protected]",
15+
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
16+
"@preact/signals-core": "https://esm.sh/@preact/[email protected]",
17+
"@std/assert": "jsr:@std/assert@^1.0.2",
18+
"@std/async": "jsr:@std/async@^1.0.3",
19+
"@std/crypto": "jsr:@std/crypto@^1.0.2",
20+
"@std/datetime": "jsr:@std/datetime@^0.224.0",
21+
"@std/encoding": "jsr:@std/encoding@^1.0.1",
22+
"@std/flags": "jsr:@std/flags@^0.224.0",
23+
"@std/fmt": "jsr:@std/fmt@^1.0.0",
24+
"@std/fs": "jsr:@std/fs@^1.0.1",
25+
"@std/http": "jsr:@std/http@^1.0.2",
26+
"@std/io": "jsr:@std/io@^0.224.4",
27+
"@std/log": "jsr:@std/log@^0.224.5",
28+
"@std/media-types": "jsr:@std/media-types@^1.0.2",
29+
"@std/path": "jsr:@std/path@^1.0.2",
30+
"@std/semver": "jsr:@std/semver@^0.224.3",
31+
"@std/streams": "jsr:@std/streams@^1.0.0",
32+
"@std/testing": "jsr:@std/testing@^1.0.0",
33+
"@zaubrik/djwt": "jsr:@zaubrik/djwt@^3.0.2",
34+
"partytown/": "https://deno.land/x/[email protected]/",
35+
"preact": "npm:[email protected]",
36+
"preact-render-to-string": "npm:[email protected]",
37+
"std/": "https://deno.land/[email protected]/"
38+
},
39+
"version": "0.54.5-alpha.1"
40+
}

blog/loaders/Author.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Author } from "../types.ts";
1+
import type { Author } from "../types.ts";
22

33
/**
44
* @title Author

blog/loaders/BlogPostItem.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AppContext } from "../mod.ts";
2-
import { BlogPost } from "../types.ts";
1+
import type { AppContext } from "../mod.ts";
2+
import type { BlogPost } from "../types.ts";
33
import { getRecordsByPath } from "../utils/records.ts";
44
import type { RequestURLParam } from "../../website/functions/requestToParam.ts";
55

blog/loaders/BlogPostPage.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AppContext } from "../mod.ts";
2-
import { BlogPost, BlogPostPage } from "../types.ts";
1+
import type { AppContext } from "../mod.ts";
2+
import type { BlogPost, BlogPostPage } from "../types.ts";
33
import { getRecordsByPath } from "../utils/records.ts";
44
import type { RequestURLParam } from "../../website/functions/requestToParam.ts";
55

blog/loaders/Blogpost.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BlogPost } from "../types.ts";
1+
import type { BlogPost } from "../types.ts";
22

33
/**
44
* @title Blogpost

blog/loaders/BlogpostList.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* @param ctx - The application context.
77
* @returns A promise that resolves to an array of blog posts.
88
*/
9-
import { AppContext } from "../mod.ts";
10-
import { BlogPost } from "../types.ts";
9+
import type { AppContext } from "../mod.ts";
10+
import type { BlogPost } from "../types.ts";
1111
import { getRecordsByPath } from "../utils/records.ts";
1212

1313
const COLLECTION_PATH = "collections/blog/posts";

blog/loaders/Category.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Category } from "../types.ts";
1+
import type { Category } from "../types.ts";
22

33
/**
44
* @title Category

blog/mod.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { App, FnContext } from "@deco/deco";
2-
import manifest, { Manifest } from "./manifest.gen.ts";
2+
import manifest, { type Manifest } from "./manifest.gen.ts";
33

44
// deno-lint-ignore no-explicit-any
55
export type State = any;

blog/sections/Seo/SeoBlogPost.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import Seo from "../../../website/components/Seo.tsx";
22
import {
33
renderTemplateString,
4-
SEOSection,
4+
type SEOSection,
55
} from "../../../website/components/Seo.tsx";
6-
import { BlogPostPage } from "../../types.ts";
7-
import { AppContext } from "../../mod.ts";
6+
import type { BlogPostPage } from "../../types.ts";
7+
import type { AppContext } from "../../mod.ts";
88

99
export interface Props {
1010
/** @title Data Source */

blog/sections/Template.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BlogPost } from "../types.ts";
1+
import type { BlogPost } from "../types.ts";
22
import { CSS } from "../static/css.ts";
33

44
export interface Props {

blog/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ImageWidget } from "../admin/widgets.ts";
1+
import type { ImageWidget } from "../admin/widgets.ts";
22

33
/**
44
* @titleBy name

blog/utils/records.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Resolvable } from "@deco/deco";
2-
import { AppContext } from "../mod.ts";
1+
import type { Resolvable } from "@deco/deco";
2+
import type { AppContext } from "../mod.ts";
33

44
export async function getRecordsByPath<T>(
55
ctx: AppContext,

decohub/components/Markdown.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import { CSS, KATEX_CSS, render } from "https://deno.land/x/[email protected]/mod.ts";
2-
import "https://esm.sh/[email protected]/components/prism-diff.js?no-check";
3-
import "https://esm.sh/[email protected]/components/prism-jsx.js?no-check";
4-
import "https://esm.sh/[email protected]/components/prism-tsx.js?no-check";
5-
import "https://esm.sh/[email protected]/components/prism-typescript.js?no-check";
1+
import { CSS, KATEX_CSS, render } from "@deno/gfm";
2+
import "npm:[email protected]";
63

74
export const Markdown = async (path: string) => {
85
const content = await fetch(path)

deno.json

+15-12
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,41 @@
22
"workspace": [
33
"./vtex",
44
"./website",
5-
"./htmx"
5+
"./htmx",
6+
"./blog",
7+
"./admin"
68
],
79
"imports": {
810
"$fresh/": "https://denopkg.com/denoland/[email protected]/",
9-
"@deco/deco": "jsr:@deco/[email protected]",
11+
"@cliffy/prompt": "jsr:@cliffy/prompt@^1.0.0-rc.5",
12+
"@core/asyncutil": "jsr:@core/asyncutil@^1.0.0",
13+
"@deco/deco": "jsr:@deco/deco@^1.86.6-alpha.4",
1014
"@deco/durable": "jsr:@deco/durable@^0.5.3",
1115
"@deco/inspect-vscode": "jsr:@deco/inspect-vscode@^0.2.1",
16+
"@deco/warp": "jsr:@deco/[email protected]",
17+
"@deno/gfm": "jsr:@deno/gfm@^0.8.2",
1218
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
1319
"@preact/signals-core": "https://esm.sh/@preact/[email protected]",
1420
"@std/assert": "jsr:@std/assert@^1.0.2",
1521
"@std/async": "jsr:@std/async@^1.0.3",
1622
"@std/crypto": "jsr:@std/crypto@^1.0.2",
23+
"@std/datetime": "jsr:@std/datetime@^0.224.0",
1724
"@std/encoding": "jsr:@std/encoding@^1.0.1",
25+
"@std/flags": "jsr:@std/flags@^0.224.0",
1826
"@std/fmt": "jsr:@std/fmt@^1.0.0",
1927
"@std/fs": "jsr:@std/fs@^1.0.1",
2028
"@std/http": "jsr:@std/http@^1.0.2",
21-
"@std/media-types": "jsr:@std/media-types@^1.0.2",
22-
"@std/path": "jsr:@std/path@^1.0.2",
23-
"@zaubrik/djwt": "jsr:@zaubrik/djwt@^3.0.2",
24-
"preact": "npm:[email protected]",
25-
"preact-render-to-string": "npm:[email protected]",
26-
"@cliffy/prompt": "jsr:@cliffy/prompt@^1.0.0-rc.5",
27-
"@core/asyncutil": "jsr:@core/asyncutil@^1.0.0",
28-
"@deco/warp": "jsr:@deco/[email protected]",
29-
"@std/datetime": "jsr:@std/datetime@^0.224.0",
30-
"@std/flags": "jsr:@std/flags@^0.224.0",
3129
"@std/io": "jsr:@std/io@^0.224.4",
3230
"@std/log": "jsr:@std/log@^0.224.5",
31+
"@std/media-types": "jsr:@std/media-types@^1.0.2",
32+
"@std/path": "jsr:@std/path@^1.0.2",
3333
"@std/semver": "jsr:@std/semver@^0.224.3",
3434
"@std/streams": "jsr:@std/streams@^1.0.0",
3535
"@std/testing": "jsr:@std/testing@^1.0.0",
36+
"@zaubrik/djwt": "jsr:@zaubrik/djwt@^3.0.2",
3637
"partytown/": "https://deno.land/x/[email protected]/",
38+
"preact": "npm:[email protected]",
39+
"preact-render-to-string": "npm:[email protected]",
3740
"std/": "https://deno.land/[email protected]/"
3841
},
3942
"lock": false,

htmx/deno.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "@deco/htmx",
3-
"exports": {
4-
".": "./mod.ts",
5-
"./manifest": "./manifest.gen.ts"
6-
},
7-
"version": "0.54.5-alpha.1"
2+
"name": "@deco/htmx",
3+
"exports": {
4+
".": "./mod.ts",
5+
"./manifest": "./manifest.gen.ts"
6+
},
7+
"version": "0.54.5-alpha.1"
88
}

htmx/sections/Deferred.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { asResolved, isDeferred } from "@deco/deco";
22
import type { Section } from "@deco/deco/blocks";
33
import { useSection } from "@deco/deco/hooks";
44
import { shouldForceRender } from "../../utils/deferred.ts";
5-
import { AppContext } from "../mod.ts";
5+
import type { AppContext } from "../mod.ts";
66

77
/**
88
* @titleBy type

htmx/sections/htmx.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Head } from "$fresh/runtime.ts";
2-
import { SectionProps } from "@deco/deco";
1+
import type { SectionProps } from "@deco/deco";
2+
import { Head } from "@deco/deco";
33
import { useScript } from "@deco/deco/hooks";
4-
import { AppContext, Extension } from "../mod.ts";
4+
import type { AppContext, Extension } from "../mod.ts";
55

66
const script = (extensions: Extension[]) => {
77
if (extensions.length > 0) {

linx-impulse/sections/Script/LinxImpulseScript.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { Head } from "$fresh/runtime.ts";
2-
import { SectionProps } from "@deco/deco";
1+
import { Head, SectionProps } from "@deco/deco";
32
import { AppContext } from "../../mod.ts";
43

54
export const loader = (_props: unknown, _req: Request, ctx: AppContext) => ({

linx/hooks/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IS_BROWSER } from "$fresh/runtime.ts";
1+
import { IS_BROWSER } from "@deco/deco";
22
import { signal } from "@preact/signals";
33
import { invoke } from "../runtime.ts";
44
import type { Cart } from "../utils/types/basketJSON.ts";

nuvemshop/hooks/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IS_BROWSER } from "$fresh/runtime.ts";
1+
import { IS_BROWSER } from "@deco/deco";
22
import { signal } from "@preact/signals";
33
import { invoke } from "../runtime.ts";
44
import { Cart } from "../utils/types.ts";

shopify/hooks/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IS_BROWSER } from "$fresh/runtime.ts";
1+
import { IS_BROWSER } from "@deco/deco";
22
import { signal } from "@preact/signals";
33
import { invoke } from "../runtime.ts";
44
import type { CartFragment } from "../utils/storefront/storefront.graphql.gen.ts";

sourei/sections/Analytics/Sourei.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// deno-lint-ignore-file no-explicit-any
2-
import { Head } from "$fresh/runtime.ts";
2+
import { Head } from "@deco/deco";
33
import { useScriptAsDataURI } from "@deco/deco/hooks";
44

55
interface Props {

0 commit comments

Comments
 (0)