Skip to content

Wrong documentation link in react rules #2502

@DavidHenri008

Description

@DavidHenri008

In eslint-config-airbnb react rules, many configuration refer to a wrong documentation path.

// Enforce defaultProps declarations alphabetical sorting
// https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/jsx-sort-default-props.md
'react/jsx-sort-default-props': ['off', {
   ignoreCase: true,
}],

It should probably not contain the blob ID key but rather the ID master, like:

// Enforce defaultProps declarations alphabetical sorting
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-default-props.md
'react/jsx-sort-default-props': ['off', {
   ignoreCase: true,
}],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions