Skip to content

Commit 4c59866

Browse files
committed
[eslint config] [deps] update eslint-plugin-react
1 parent 386a7b1 commit 4c59866

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

packages/eslint-config-airbnb/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"eslint-find-rules": "^1.13.2",
5555
"eslint-plugin-import": "^1.15.0",
5656
"eslint-plugin-jsx-a11y": "^2.2.2",
57-
"eslint-plugin-react": "^6.2.1",
57+
"eslint-plugin-react": "^6.3.0",
5858
"in-publish": "^2.0.0",
5959
"react": ">= 0.13.0",
6060
"safe-publish-latest": "^1.1.0",
@@ -64,7 +64,7 @@
6464
"eslint": "^3.5.0",
6565
"eslint-plugin-jsx-a11y": "^2.2.2",
6666
"eslint-plugin-import": "^1.15.0",
67-
"eslint-plugin-react": "^6.2.1"
67+
"eslint-plugin-react": "^6.3.0"
6868
},
6969
"engines": {
7070
"node": ">= 4"

packages/eslint-config-airbnb/rules/react.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,16 @@ module.exports = {
263263
// Require style prop value be an object or var
264264
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/style-prop-object.md
265265
'react/style-prop-object': 'error',
266+
267+
// Prevent invalid characters from appearing in markup
268+
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unescaped-entities.md
269+
// TODO: enable, semver-major
270+
'react/no-unescaped-entities': 'off',
271+
272+
// Prevent passing of children as props
273+
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-children-prop.md
274+
// TODO: enable, semver-major
275+
'react/no-children-prop': 'off'
266276
},
267277

268278
settings: {

0 commit comments

Comments
 (0)