Skip to content

linter: react/forbid-dom-props support disallowedValues option #23049

Description

@Sysix

Upstream docs:
https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/forbid-dom-props.md

We are currently missing this option:

pub struct PropWithOptions {
/// The name of the prop to forbid.
prop_name: CompactStr,
/// A list of DOM element names (e.g. `["div", "span"]`) on which this
/// prop is forbidden. If empty or omitted, the prop is forbidden on all
/// DOM elements.
disallowed_for: Option<Vec<CompactStr>>,
/// A custom message to display when this prop is used.
message: Option<String>,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions