Skip to content

Commit b34603a

Browse files
committed
docs(linter): Add configuration option docs for eslint/no-extend-native rule.
1 parent a8e5181 commit b34603a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/oxc_linter/src/rules/eslint/no_extend_native.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ use oxc_ast::{
55
use oxc_diagnostics::OxcDiagnostic;
66
use oxc_macros::declare_oxc_lint;
77
use oxc_span::{CompactStr, GetSpan};
8+
use schemars::JsonSchema;
9+
use serde::Deserialize;
810

911
use crate::{AstNode, context::LintContext, rule::Rule};
1012

1113
#[derive(Debug, Default, Clone)]
1214
pub struct NoExtendNative(Box<NoExtendNativeConfig>);
1315

14-
#[derive(Debug, Default, Clone)]
16+
#[derive(Debug, Default, Clone, JsonSchema, Deserialize)]
17+
#[serde(rename_all = "camelCase", default)]
1518
pub struct NoExtendNativeConfig {
1619
/// A list of objects which are allowed to be exceptions to the rule.
1720
exceptions: Vec<CompactStr>,
@@ -68,6 +71,7 @@ declare_oxc_lint!(
6871
NoExtendNative,
6972
eslint,
7073
suspicious,
74+
config = NoExtendNativeConfig,
7175
);
7276

7377
impl Rule for NoExtendNative {

0 commit comments

Comments
 (0)