Eslint-plugin-react: not checking for prop-types validation

Created on 8 Oct 2018  路  1Comment  路  Source: yannickcr/eslint-plugin-react

When I leave out PropTypes I don't get the expected error.

I thought this might've been related to https://github.com/yannickcr/eslint-plugin-react/issues/1958, but when I downgraded to 7.10.0 it made no difference.

I've been away from React for a couple of months but I really miss these Eslint errors now! 馃槃

Note that I created my app using create-react-app. Not sure if that's causing the problem?

devDependencies:

  "devDependencies": {
    "eslint": "^5.6.1",
    "eslint-config-airbnb": "^17.1.0",
    "eslint-plugin-import": "^2.14.0",
    "eslint-plugin-jsx-a11y": "^6.1.2",
    "eslint-plugin-react": "7.10.0"
  }

Config:

{
    "extends": ["extends:airbnb", "eslint:recommended", "plugin:react/recommended"],
    "rules": {
        "react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx"] }],
        "implicit-arrow-linebreak": ["warning", "beside"],
        "react/proptypes": [1],
        "react/forbid-prop-types": [0]
    },
    "settings": {
        "react": {
        "createClass": "createReactClass",
        "pragma": "React", 
        "version": "15.0",
        "flowVersion": "0.53"
        },
        "propWrapperFunctions": [ "forbidExtraProps" ]
    },
    "plugins": [
        "react"
      ]
}
invalid

>All comments

Added extends: too much. 馃

Was this page helpful?
0 / 5 - 0 ratings