diff --git a/crates/oxc_linter/src/rules/eslint/func_style.rs b/crates/oxc_linter/src/rules/eslint/func_style.rs index 6f7f9a41266da..566169dbaf939 100644 --- a/crates/oxc_linter/src/rules/eslint/func_style.rs +++ b/crates/oxc_linter/src/rules/eslint/func_style.rs @@ -57,9 +57,13 @@ impl From<&str> for NamedExports { #[derive(Debug, Default, Clone, Deserialize, Serialize, JsonSchema)] #[serde(rename_all = "camelCase", default)] pub struct FuncStyle { + /// The style to enforce. Either "expression" (default) or "declaration". style: Style, + /// When true, arrow functions are allowed regardless of the style setting. allow_arrow_functions: bool, + /// When true, functions with type annotations are allowed regardless of the style setting. allow_type_annotation: bool, + /// Override the style specifically for named exports. Can be "expression", "declaration", or "ignore" (default). named_exports: Option, }