Skip to content

Commit 5dfcac5

Browse files
feat(linter): add eslint/arrow-body-style rule (oxc-project#11937)
Rule detail: https://eslint.org/docs/latest/rules/arrow-body-style --------- Co-authored-by: Cameron Clark <cameron.clark@hey.com>
1 parent 11e0a43 commit 5dfcac5

File tree

3 files changed

+1137
-0
lines changed

3 files changed

+1137
-0
lines changed

crates/oxc_linter/src/rules.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ mod import {
4040

4141
mod eslint {
4242
pub mod array_callback_return;
43+
pub mod arrow_body_style;
4344
pub mod block_scoped_var;
4445
pub mod curly;
4546
pub mod default_case;
@@ -574,6 +575,7 @@ mod node {
574575

575576
oxc_macros::declare_all_lint_rules! {
576577
eslint::array_callback_return,
578+
eslint::arrow_body_style,
577579
eslint::block_scoped_var,
578580
eslint::curly,
579581
eslint::default_case,

0 commit comments

Comments
 (0)