Skip to content

Commit

Permalink
feat(linter/jsdoc): Implement require-param rule (#3554)
Browse files Browse the repository at this point in the history
Part of #1170

>
https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param.md

NOTE: `config.useDefaultObjectProperties` is not implemented for now.
  • Loading branch information
leaysgur authored Jun 7, 2024
1 parent a939ddd commit 4a075cc
Show file tree
Hide file tree
Showing 5 changed files with 1,926 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ extend-exclude = [
"tasks/prettier_conformance/prettier",
]

[default]
extend-ignore-re = ["(?Rm)^.*(#|//)\\s*spellchecker:disable-line$"]

[default.extend-words]
trivias = "trivias"
trivia = "trivia"
Expand Down
2 changes: 2 additions & 0 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ mod jsdoc {
pub mod empty_tags;
pub mod implements_on_classes;
pub mod no_defaults;
pub mod require_param;
pub mod require_property;
pub mod require_property_description;
pub mod require_property_name;
Expand Down Expand Up @@ -757,6 +758,7 @@ oxc_macros::declare_all_lint_rules! {
jsdoc::empty_tags,
jsdoc::implements_on_classes,
jsdoc::no_defaults,
jsdoc::require_param,
jsdoc::require_property,
jsdoc::require_property_type,
jsdoc::require_property_name,
Expand Down
Loading

0 comments on commit 4a075cc

Please sign in to comment.