Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jsx-eslint/eslint-plugin-react
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.27.1
Choose a base ref
...
head repository: jsx-eslint/eslint-plugin-react
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.28.0
Choose a head ref
  • 11 commits
  • 12 files changed
  • 4 contributors

Commits on Nov 11, 2021

  1. [New] function-component-definition: support namedComponents option…

    … being an array
    
    This adds support to the `function-component-definition`  rule to have the `namedComponents` rule be an array.
    petersendidit authored and ljharb committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    e3d3525 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2021

  1. [Refactor] no-arrow-function-lifecycle, `no-unused-class-component-…

    …methods`: use report/messages convention
    ljharb committed Nov 25, 2021
    Configuration menu
    Copy the full SHA
    32f2e24 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2021

  1. [Tests] component detection: Add testing scaffolding

    Test detection of Class Components and Stateless Function Components
    Lay scaffolding for other flavors of tests including further component types, pragma detection, and utils functions
    duncanbeevers authored and ljharb committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    8b98e60 View commit details
    Browse the repository at this point in the history
  2. [New] components detection: track React imports

    The default React import and named React import specifiers are tracked during a Components.detect rules definition.
    Rules using Components.detect can access the default import specifier using `components.getDefaultReactImport()` and an array any named import specifiers using `components.getNamedReactImports()`
    Within a rule, these specifier nodes can be checked to ensure identifiers in scope correspond with the imported identifiers.
    
    Not treating this as semver-minor since it's not part of the documented API.
    duncanbeevers authored and ljharb committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    a09debf View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2021

  1. Configuration menu
    Copy the full SHA
    d5bf8d9 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2021

  1. [Test] parsers.all augments suggestion code output

    parsers.all generates an extraComment which is appended to test case examples and their expected output.
    Eslint's suggestions API also allows recommended code changes, and RuleTester compares expected changes against generated changes. However, parsers.all didn't augment these expected outputs with the extraComment.
    duncanbeevers committed Dec 11, 2021
    Configuration menu
    Copy the full SHA
    f7943d5 View commit details
    Browse the repository at this point in the history
  2. [Tests] tiny cleanup

    ljharb committed Dec 11, 2021
    Configuration menu
    Copy the full SHA
    ac4e311 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2021

  1. Configuration menu
    Copy the full SHA
    d56fdb8 View commit details
    Browse the repository at this point in the history
  2. [New] component detection: add util.isReactHookCall

    Rename Components test suite filename to match sibling lib/util/Components filename.
    Extend Components testComponentsDetect function to accept custom instructions, and to accumulate the results of processing those instructions.
    Add utility to check whether a CallExpression is a React hook call.
    duncanbeevers authored and ljharb committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    5a25380 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2021

  1. [Fix] jsx-indent-props: Reset line.isUsingOperator correctly afte…

    …r ternary
    Tobias Waltl authored and ljharb committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    3db5285 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2021

  1. Configuration menu
    Copy the full SHA
    9be55ed View commit details
    Browse the repository at this point in the history
Loading