Eslint-plugin-react: Definition for rule 'react/no-this-in-sfc' was not found (react/no-this-in-sfc)

Created on 11 Dec 2017  路  4Comments  路  Source: yannickcr/eslint-plugin-react

Problem definition

ESLint can not find the rule react/no-this-in-sfc.

How to reproduce?

eslintrc.js

' ... rules: { 'react/no-this-in-sfc': 2 } ...

Setup

Windows 10, node v.8.9.3, eslint-plugin-react v. 7.5.1, ESLint v.3.19.0 & babel-eslint 8.0.3.

Most helpful comment

Oh now I see! You can actually change the version of the README.md. I always thought the "frontpage" would mirror the latest release. Sorry, I am just learning GitHub. And thanks for the clarification.

All 4 comments

It鈥檚 not yet released. Check the docs in the v7.5.1 tag to see what is released.

Ok, that explains it. It is true that there is nothing about no-this-in-sfc in the changelog. Perhaps there should be also a note in the no-this-in-sfc -docs or at the frontpage listing? :)

I suppose we could add a note; but the assumption that a repo's master branch is always released is just false, almost every single time, so this really just has to be something people already know.

Oh now I see! You can actually change the version of the README.md. I always thought the "frontpage" would mirror the latest release. Sorry, I am just learning GitHub. And thanks for the clarification.

Was this page helpful?
0 / 5 - 0 ratings