mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
[eslint config] [deps] update eslint-plugin-react
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
"eslint-find-rules": "^1.13.2",
|
||||
"eslint-plugin-import": "^1.15.0",
|
||||
"eslint-plugin-jsx-a11y": "^2.2.2",
|
||||
"eslint-plugin-react": "^6.2.1",
|
||||
"eslint-plugin-react": "^6.3.0",
|
||||
"in-publish": "^2.0.0",
|
||||
"react": ">= 0.13.0",
|
||||
"safe-publish-latest": "^1.1.0",
|
||||
@@ -64,7 +64,7 @@
|
||||
"eslint": "^3.5.0",
|
||||
"eslint-plugin-jsx-a11y": "^2.2.2",
|
||||
"eslint-plugin-import": "^1.15.0",
|
||||
"eslint-plugin-react": "^6.2.1"
|
||||
"eslint-plugin-react": "^6.3.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 4"
|
||||
|
||||
10
packages/eslint-config-airbnb/rules/react.js
vendored
10
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -263,6 +263,16 @@ module.exports = {
|
||||
// Require style prop value be an object or var
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/style-prop-object.md
|
||||
'react/style-prop-object': 'error',
|
||||
|
||||
// Prevent invalid characters from appearing in markup
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unescaped-entities.md
|
||||
// TODO: enable, semver-major
|
||||
'react/no-unescaped-entities': 'off',
|
||||
|
||||
// Prevent passing of children as props
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-children-prop.md
|
||||
// TODO: enable, semver-major
|
||||
'react/no-children-prop': 'off'
|
||||
},
|
||||
|
||||
settings: {
|
||||
|
||||
Reference in New Issue
Block a user