mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 08:38:08 -05:00
[eslint config] [breaking] Enable react rules:
- `react/no-unescaped-entities` - `react/no-children-prop`
This commit is contained in:
6
packages/eslint-config-airbnb/rules/react.js
vendored
6
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user