Skip to content

Commit 80e481e

Browse files
author
Yannick Croissant
committed
Fix rules metadata
1 parent 4c7ad3d commit 80e481e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

lib/rules/forbid-component-props.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ var DEFAULTS = ['className', 'style'];
1616

1717
module.exports = {
1818
meta: {
19-
docs: {},
19+
docs: {
20+
description: 'Forbid certain props on components',
21+
category: 'Best Practices',
22+
recommended: false
23+
},
2024

2125
schema: [{
2226
type: 'object',

lib/rules/no-render-return-value.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ var versionUtil = require('../util/version');
1313
module.exports = {
1414
meta: {
1515
docs: {
16-
description: 'Prevent multiple component definition per file',
16+
description: 'Prevent usage of the return value of React.render',
1717
category: 'Best Practices',
18-
recommended: false
18+
recommended: true
1919
},
2020
schema: []
2121
},

lib/rules/require-render-return.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
docs: {
1616
description: 'Enforce ES5 or ES6 class for returning value in render function',
1717
category: 'Possible Errors',
18-
recommended: false
18+
recommended: true
1919
},
2020
schema: [{}]
2121
},

0 commit comments

Comments
 (0)