Add ESLint check for incorrect propTypes usage (#3840) (#4048)

This commit is contained in:
Ian Sutherland
2018-03-25 16:17:41 -06:00
committed by GitHub
parent 33f1294f07
commit 8a34b7cc77
4 changed files with 4 additions and 3 deletions

View File

@@ -186,6 +186,7 @@ module.exports = {
'import/no-webpack-loader-syntax': 'error',
// https://github.com/yannickcr/eslint-plugin-react/tree/master/docs/rules
'react/forbid-foreign-prop-types': ['warn', { allowInPropTypes: true }],
'react/jsx-no-comment-textnodes': 'warn',
'react/jsx-no-duplicate-props': ['warn', { ignoreCase: true }],
'react/jsx-no-target-blank': 'warn',

View File

@@ -16,7 +16,7 @@
"eslint-plugin-flowtype": "^2.34.1",
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.1.0"
"eslint-plugin-react": "^7.7.0"
},
"dependencies": {
"confusing-browser-globals": "^1.0.0"

View File

@@ -47,7 +47,7 @@
"eslint-plugin-flowtype": "2.41.0",
"eslint-plugin-import": "2.8.0",
"eslint-plugin-jsx-a11y": "6.0.3",
"eslint-plugin-react": "7.5.1",
"eslint-plugin-react": "7.7.0",
"flow-bin": "^0.63.1",
"html-entities": "1.2.1",
"jest": "22.1.2",

View File

@@ -41,7 +41,7 @@
"eslint-plugin-flowtype": "2.41.0",
"eslint-plugin-import": "2.8.0",
"eslint-plugin-jsx-a11y": "6.0.3",
"eslint-plugin-react": "7.5.1",
"eslint-plugin-react": "7.7.0",
"extract-text-webpack-plugin": "3.0.2",
"file-loader": "1.1.6",
"fs-extra": "5.0.0",