mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 07:47:54 -05:00
[eslint config] [deps] update eslint-plugin-react
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
"eslint-find-rules": "^1.13.0",
|
||||
"eslint-plugin-import": "^1.13.0",
|
||||
"eslint-plugin-jsx-a11y": "^2.1.0",
|
||||
"eslint-plugin-react": "^6.0.0",
|
||||
"eslint-plugin-react": "^6.1.0",
|
||||
"in-publish": "^2.0.0",
|
||||
"react": "> 0.13.0",
|
||||
"safe-publish-latest": "^1.0.1",
|
||||
@@ -64,7 +64,7 @@
|
||||
"eslint": "^3.3.0",
|
||||
"eslint-plugin-jsx-a11y": "^2.1.0",
|
||||
"eslint-plugin-import": "^1.13.0",
|
||||
"eslint-plugin-react": "^6.0.0"
|
||||
"eslint-plugin-react": "^6.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 4"
|
||||
|
||||
9
packages/eslint-config-airbnb/rules/react.js
vendored
9
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -243,6 +243,15 @@ module.exports = {
|
||||
// warn against using findDOMNode()
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-find-dom-node.md
|
||||
'react/no-find-dom-node': 2,
|
||||
|
||||
// Forbid certain props on Components
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-component-props.md
|
||||
'react/forbid-component-props': [0, { forbid: [] }],
|
||||
|
||||
// Prevent problem with children and props.dangerouslySetInnerHTML
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-danger-with-children.md
|
||||
// TODO: enable, semver-major
|
||||
'react/no-danger-with-children': 0,
|
||||
},
|
||||
|
||||
settings: {
|
||||
|
||||
Reference in New Issue
Block a user