Skip to content

Commit 976845e

Browse files
committed
[eslint config] [breaking] Enable react rules:
- `react/no-unescaped-entities` - `react/no-children-prop`
1 parent 0dae56a commit 976845e

File tree

1 file changed

+2
-4
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+2
-4
lines changed

packages/eslint-config-airbnb/rules/react.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,11 @@ module.exports = {
267267

268268
// Prevent invalid characters from appearing in markup
269269
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unescaped-entities.md
270-
// TODO: enable, semver-major
271-
'react/no-unescaped-entities': 'off',
270+
'react/no-unescaped-entities': 'error',
272271

273272
// Prevent passing of children as props
274273
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-children-prop.md
275-
// TODO: enable, semver-major
276-
'react/no-children-prop': 'off'
274+
'react/no-children-prop': 'error'
277275
},
278276

279277
settings: {

0 commit comments

Comments
 (0)