Cleaning up the react styleguide. Adding additional info in props.

This commit is contained in:
Jordan Gensler
2015-12-13 18:36:25 -08:00
parent 8815205471
commit 5c3137d736
2 changed files with 109 additions and 9 deletions

View File

@@ -21,6 +21,9 @@ module.exports = {
// Validate props indentation in JSX
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent-props.md
'react/jsx-indent-props': [2, 2],
// Prevent usage of .bind() and arrow functions in JSX props
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md
'react/jsx-no-bind': 2,
// Prevent duplicate props in JSX
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
'react/jsx-no-duplicate-props': 0,