upleveled / eslint-config-upleveled

UpLeveled ESLint defaults for programming in JavaScript, TypeScript, React, Next.js, Node.js, Postgres.js

Home Page:https://www.npmjs.com/package/eslint-config-upleveled

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Definition for rule 'react/no-unstable-nested-components' was not found

karlhorky opened this issue · comments

Currently, there is an error with the ESLint config, where it is complaining that a certain ESLint rule was not found:

Definition for rule 'react/no-unstable-nested-components' was not found

This primarily affects create-react-app, which creates the following dependency in yarn.lock, even though it's not the latest version of eslint-plugin-react:

eslint-plugin-react@^7.21.5:
  version "7.22.0"

...

react-scripts@4.0.3:
  version "4.0.3"
  ...
  dependencies:
    ...
    eslint-plugin-react "^7.21.5"

This will not show up right away in the editor or in ESLint on the command line, but it will show up when you start a create-react-app application with yarn start:

Screen Shot 2021-06-21 at 10 47 31


The workaround is to add a resolutions field (for Yarn Resolutions) to the package.json:

  "resolutions": {
    "eslint-plugin-react": "7.23.2"
  }

@Josehower can you add a new line to the setup commands for this?

Fixed in #50