-
-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(analyzer): suppression comment fails with inner comments in funct…
…ions
- Loading branch information
1 parent
bf0774f
commit c50e0de
Showing
3 changed files
with
18 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
crates/biome_js_analyze/tests/specs/complexity/useArrowFunction/suppressionComments.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// biome-ignore lint/complexity/useArrowFunction: work | ||
const foo0 = function (bar: string) { | ||
// biome-ignore lint/style/noParameterAssign: allow | ||
bar = "baz"; | ||
}; | ||
|
||
// biome-ignore lint/complexity/useArrowFunction: work | ||
const foo1 = function () { | ||
// biome-ignore lint/suspicious/noExplicitAny: work | ||
let bar: any; | ||
}; |