[eslint config] [breaking] Enable react rules:

- `react/no-unescaped-entities`
 - `react/no-children-prop`
This commit is contained in:
Jordan Harband
2016-09-24 14:38:54 -07:00
parent 0dae56a8e1
commit 976845e930

View File

@@ -267,13 +267,11 @@ module.exports = {
// Prevent invalid characters from appearing in markup
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unescaped-entities.md
// TODO: enable, semver-major
'react/no-unescaped-entities': 'off',
'react/no-unescaped-entities': 'error',
// Prevent passing of children as props
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-children-prop.md
// TODO: enable, semver-major
'react/no-children-prop': 'off'
'react/no-children-prop': 'error'
},
settings: {