Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Dec 11, 2024
1 parent 6f762fd commit 1851d54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cli/schemas/lint-rules.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@
"valid-typeof",
"verbatim-module-syntax"
]
}
}
13 changes: 8 additions & 5 deletions cli/tools/lint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,11 +623,14 @@ mod tests {

std::fs::write(
&rules_schema_path,
serde_json::to_string_pretty(&RulesSchema {
schema: schema.schema,
rules: all_rules,
})
.unwrap(),
format!(
"{}\n",
serde_json::to_string_pretty(&RulesSchema {
schema: schema.schema,
rules: all_rules,
})
.unwrap(),
),
)
.unwrap();
}
Expand Down

0 comments on commit 1851d54

Please sign in to comment.