Skip to content

Commit

Permalink
fix(deno-lint): Support eslint-disable in the lint function
Browse files Browse the repository at this point in the history
Make it consistent with the denolint function.
  • Loading branch information
prantlf committed Sep 24, 2022
1 parent d6cf2b6 commit 57155cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/deno-lint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ fn lint(
get_recommended_rules()
})
.media_type(get_media_type(Path::new(file_name.as_str())))
.ignore_file_directive("eslint-disable")
.ignore_diagnostic_directive("eslint-disable-next-line")
.build();

Expand Down

0 comments on commit 57155cc

Please sign in to comment.