Deno fmt conflicting with Deno lint, when using IIFE

// before formating
((): void => { /* code */ })()
// 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)
// after formatting
;((): void => { /* code */ })()
^// deno-lint(no-extra-semi)
3 Replies
Beast
Beast2y ago
the fix for that is use semicolons please I'm pretty sure it gets formatted like that just when you don't use semicolons
AapoAlas
AapoAlas2y ago
Please open an issue in denoland/deno repository.
!Roricchi 2.0『藤田の妻』
yeah, with semicolons its fine yes ok