We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 444c096 commit c6c5e3bCopy full SHA for c6c5e3b
index.js
@@ -112,16 +112,23 @@ module.exports = {
112
},
113
rules: {
114
'react/display-name': 2,
115
+ 'react/jsx-key': 2,
116
+ 'react/jsx-no-comment-textnodes': 2,
117
'react/jsx-no-duplicate-props': 2,
118
+ 'react/jsx-no-target-blank': 2,
119
'react/jsx-no-undef': 2,
120
'react/jsx-uses-react': 2,
121
'react/jsx-uses-vars': 2,
122
+ 'react/no-children-prop': 2,
123
+ 'react/no-danger-with-children': 2,
124
'react/no-deprecated': 2,
125
'react/no-direct-mutation-state': 2,
126
'react/no-find-dom-node': 2,
127
'react/no-is-mounted': 2,
- 'react/no-unknown-property': 2,
128
'react/no-render-return-value': 2,
129
+ 'react/no-string-refs': 2,
130
+ 'react/no-unescaped-entities': 2,
131
+ 'react/no-unknown-property': 2,
132
'react/prop-types': 2,
133
'react/react-in-jsx-scope': 2,
134
'react/require-render-return': 2
lib/rules/jsx-key.js
@@ -17,7 +17,7 @@ module.exports = {
17
docs: {
18
description: 'Report missing `key` props in iterators/collection literals',
19
category: 'Possible Errors',
20
- recommended: false
+ recommended: true
21
22
schema: []
23
lib/rules/jsx-no-comment-textnodes.js
@@ -13,7 +13,7 @@ module.exports = {
13
14
description: 'Comments inside children section of tag should be placed inside braces',
15
16
schema: [{
lib/rules/jsx-no-target-blank.js
description: 'Forbid target="_blank" attribute without rel="noopener noreferrer"',
category: 'Best Practices',
lib/rules/no-children-prop.js
@@ -31,7 +31,7 @@ module.exports = {
31
32
description: 'Prevent passing of children as props.',
33
34
35
36
37
lib/rules/no-danger-with-children.js
@@ -14,7 +14,7 @@ module.exports = {
description: 'Report when a DOM element is using both children and dangerouslySetInnerHTML',
category: '',
schema: [] // no options
lib/rules/no-string-refs.js
@@ -15,7 +15,7 @@ module.exports = {
description: 'Prevent string definitions for references and prevent referencing this.refs',
lib/rules/no-unescaped-entities.js
@@ -18,7 +18,7 @@ module.exports = {
description: 'Detect unescaped HTML entities, which might represent malformed tags',
24
type: 'object',
0 commit comments