1771771771
Denoβ€’3y agoβ€’
5 replies
177177177

Deno fmt conflicting with Deno lint, when using IIFE

// before formating
((): void => { /* code */ })()

after formating with deno fmt, it adds an extra semicolon before the IIFE, but deno lint says Unnecessary semicolon. Remove the extra (and unnecessary) semi-colon deno-lint(no-extra-semi)
// after formatting
;((): void => { /* code */ })()
^// deno-lint(no-extra-semi)
Was this page helpful?