subbed
subbed
DDeno
Created by subbed on 12/15/2024 in #help
Deno error on Hono Swagger UI
It seems like hono/swagger-ui@0.4.1 is successfully built, therefore this is a Hono issue, not a Deno issue
3 replies
DDeno
Created by subbed on 12/15/2024 in #help
Deno error on Hono Swagger UI
Any sort of help would be appreciated
3 replies
DDeno
Created by subbed on 10/16/2024 in #help
how to specify lint rules in deno.json?
18 replies
DDeno
Created by subbed on 10/16/2024 in #help
how to specify lint rules in deno.json?
i'll open up an issue on github
18 replies
DDeno
Created by subbed on 10/16/2024 in #help
how to specify lint rules in deno.json?
if this does turn out to be a bug, it will be that much funnier, since i opened a previous issue as a bug, but referenced it as a deno check issue, not a deno lint issue :^)
18 replies
DDeno
Created by subbed on 10/16/2024 in #help
how to specify lint rules in deno.json?
ok, i tried a few of them out, including the camelcase you mention, and all seem to work except the explicit-function-return-type
18 replies
DDeno
Created by subbed on 10/16/2024 in #help
how to specify lint rules in deno.json?
rootHandler not having the Response return type should error out
18 replies
DDeno
Created by subbed on 10/16/2024 in #help
how to specify lint rules in deno.json?
No description
18 replies
DDeno
Created by subbed on 10/16/2024 in #help
how to specify lint rules in deno.json?
i also tried without the "tags": ["recommended"] field, but it is the same
18 replies
DDeno
Created by subbed on 10/16/2024 in #help
how to specify lint rules in deno.json?
hmm, it does not seem to respect any of the specified rules. i also passed the config file in with --config, though it is in the default location of ./deno.json. am i doing something wrong?
{
"lint": {
"include": ["src"],
"rules": {
"tags": ["recommended"],
"include": [
"camelcase",
"default-param-last",
"eqeqeq",
"explicit-function-return-type",
"explicit-module-boundary-types",
"guard-for-in",
"no-await-in-loop",
"no-boolean-literal-for-arguments",
"no-eval",
"no-inferrable-types",
"no-non-null-asserted-optional-chain",
"no-non-null-assertion",
"no-self-compare",
"no-sparse-arrays",
"no-sync-fn-in-async-fn",
"no-throw-literal",
"no-top-level-await",
"no-undef",
"prefer-ascii",
"single-var-declarator",
"triple-slash-reference",
"verbatim-module-syntax"
]
}
}
}
{
"lint": {
"include": ["src"],
"rules": {
"tags": ["recommended"],
"include": [
"camelcase",
"default-param-last",
"eqeqeq",
"explicit-function-return-type",
"explicit-module-boundary-types",
"guard-for-in",
"no-await-in-loop",
"no-boolean-literal-for-arguments",
"no-eval",
"no-inferrable-types",
"no-non-null-asserted-optional-chain",
"no-non-null-assertion",
"no-self-compare",
"no-sparse-arrays",
"no-sync-fn-in-async-fn",
"no-throw-literal",
"no-top-level-await",
"no-undef",
"prefer-ascii",
"single-var-declarator",
"triple-slash-reference",
"verbatim-module-syntax"
]
}
}
}
18 replies
DDeno
Created by subbed on 10/16/2024 in #help
how to specify lint rules in deno.json?
then perhaps my question is, is there a list of defaults somewhere? maybe the recommended are the defaults?
18 replies
DDeno
Created by subbed on 10/16/2024 in #help
how to specify lint rules in deno.json?
i think i found it. it's under lint.rules.include
18 replies
DDeno
Created by subbed on 10/15/2024 in #help
deno check does not accept noImplicitReturns
ah, awesome, thank you!
15 replies
DDeno
Created by subbed on 10/15/2024 in #help
deno check does not accept noImplicitReturns
@bartlomieju ok so, considering this reply here on the issue, is there even an option to truly enforce strict checks, enforcing return types? https://github.com/denoland/deno/issues/26265#issuecomment-2413938566
15 replies
DDeno
Created by subbed on 10/15/2024 in #help
deno check does not accept noImplicitReturns
correct, and as i said, i have been using it thus far. thank you for your recommendation regardless
15 replies
DDeno
Created by subbed on 10/15/2024 in #help
deno check does not accept noImplicitReturns
i have used biome for quite a while now. regardless, it is an additional config file on the root, so a fix would be appreciated
15 replies
DDeno
Created by subbed on 10/15/2024 in #help
deno check does not accept noImplicitReturns
15 replies
DDeno
Created by subbed on 10/15/2024 in #help
deno check does not accept noImplicitReturns
please ping me if you reply to this post, thank you
15 replies
DDeno
Created by subbed on 10/15/2024 in #help
deno check does not accept noImplicitReturns
for example, deno check does not error on the following, even though the Response return type is not provided:
const rootHandler = (ctx: Context) => {
return ctx.json({ shade: "?", random: randomInt(0, 256) });
};
const rootHandler = (ctx: Context) => {
return ctx.json({ shade: "?", random: randomInt(0, 256) });
};
15 replies