Skip to content

Commit

Permalink
Fix rules metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Croissant committed Aug 14, 2016
1 parent 4c7ad3d commit 80e481e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion lib/rules/forbid-component-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ var DEFAULTS = ['className', 'style'];

module.exports = {
meta: {
docs: {},
docs: {
description: 'Forbid certain props on components',
category: 'Best Practices',
recommended: false
},

schema: [{
type: 'object',
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-render-return-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ var versionUtil = require('../util/version');
module.exports = {
meta: {
docs: {
description: 'Prevent multiple component definition per file',
description: 'Prevent usage of the return value of React.render',
category: 'Best Practices',
recommended: false
recommended: true
},
schema: []
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-render-return.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
docs: {
description: 'Enforce ES5 or ES6 class for returning value in render function',
category: 'Possible Errors',
recommended: false
recommended: true
},
schema: [{}]
},
Expand Down

0 comments on commit 80e481e

Please sign in to comment.