Content-Length: 255765 | pFad | https://github.com/jsx-eslint/eslint-plugin-react/issues/3509

CD [Bug]: Error in docs for prefer-exact-props · Issue #3509 · jsx-eslint/eslint-plugin-react · GitHub
Skip to content

[Bug]: Error in docs for prefer-exact-props #3509

Closed
@smackfu

Description

@smackfu

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • My issue appears in the command-line and not only in the text editor

Description Overview

The flow example for prefer-exact-props has a typo.
https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prefer-exact-props.md

class Foo extends React.Component {
  props: {|
    bar: string
  }|

  render() {
    return <p>{this.props.bar}</p>;
  }
}

The pipe is outside of the brackets instead of inside.

Expected Behavior

Example uses correct syntax.

eslint-plugin-react version

7.31.11

eslint version

n/a

node version

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/jsx-eslint/eslint-plugin-react/issues/3509

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy