Skip to content

supabase/deno-lint

Runs deno lint over every edge function with its own deno.json.

Part of the supabase configuration, at the recommended level. It runs at the commit stage, once per scope. It runs deno.

Edge functions run under Deno, and its linter covers runtime APIs that the Node rules miss.

Change the code the way the rule says; deno lint --rules explains each one.

An Edge Function declaring var greeting = "hello"; reports no-var. Use const greeting = "hello"; instead.

Turn it off for some files, with a reason:

gspot ignore supabase/deno-lint --paths "<glob>" --reason "<why>"