Skip to content

Commit

Permalink
chore(linter): add line break for consistent (#6837)
Browse files Browse the repository at this point in the history
This regex expects always a line break before the closing bracet:
https://github.com/oxc-project/eslint-plugin-oxlint/blob/main/scripts/traverse-rules.ts#L110
  • Loading branch information
Sysix authored Oct 23, 2024
1 parent ec5a19b commit dcddbeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/oxc_linter/src/rules/node/no_new_require.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ declare_oxc_lint!(
/// var appHeader = new AppHeader();
/// ```
NoNewRequire,
restriction);
restriction
);

impl Rule for NoNewRequire {
fn run<'a>(&self, node: &AstNode<'a>, ctx: &LintContext<'a>) {
Expand Down

0 comments on commit dcddbeb

Please sign in to comment.