Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions crates/oxc_linter/src/rules/jsdoc/empty_tags.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use oxc_diagnostics::OxcDiagnostic;
use oxc_macros::declare_oxc_lint;
use oxc_span::Span;
use schemars::JsonSchema;
use serde::Deserialize;

use crate::{context::LintContext, rule::Rule, utils::should_ignore_as_private};
Expand Down Expand Up @@ -58,7 +59,8 @@ declare_oxc_lint!(
/// ```
EmptyTags,
jsdoc,
restriction
restriction,
config = EmptyTagsConfig,
);

const EMPTY_TAGS: [&str; 18] = [
Expand All @@ -82,9 +84,10 @@ const EMPTY_TAGS: [&str; 18] = [
"static",
];

#[derive(Debug, Default, Clone, Deserialize)]
#[derive(Debug, Default, Clone, Deserialize, JsonSchema)]
#[serde(rename_all = "camelCase", default)]
struct EmptyTagsConfig {
#[serde(default)]
/// Additional tags to check for their descriptions.
tags: Vec<String>,
}

Expand Down
Loading