Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
metreniuk committed Aug 9, 2023
1 parent 1734dfd commit 9ea7426
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/oxc_linter/src/rules/typescript/no_namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ fn is_declaration(node: &AstNode, ctx: &LintContext) -> bool {
}

#[test]
#[allow(clippy::too_many_lines)]
fn test() {
use crate::tester::Tester;

Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/tester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Tester {
fn snapshot(&self) {
let mut name = self.rule_name.replace('-', "_");
if &self.extension == "d.ts" {
name.push_str(&"__declarations");
name.push_str("__declarations");
}
insta::with_settings!({ prepend_module_to_snapshot => false, }, {
insta::assert_snapshot!(name.clone(), self.snapshot, &name);
Expand Down

0 comments on commit 9ea7426

Please sign in to comment.