Skip to content

Commit 7cef8da

Browse files
committed
[eslint config] [docs] add rule documentation to forbid-elements entry
1 parent ba35e31 commit 7cef8da

File tree

1 file changed

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

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ module.exports = {
266266
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-component-props.md
267267
'react/forbid-component-props': ['off', { forbid: [] }],
268268

269+
// Forbid certain elements
270+
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-elements.md
271+
'react/forbid-elements': ['off', { forbid: [], }],
272+
269273
// Prevent problem with children and props.dangerouslySetInnerHTML
270274
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-danger-with-children.md
271275
'react/no-danger-with-children': 'error',
@@ -306,11 +310,6 @@ module.exports = {
306310
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-default-props.md
307311
'react/require-default-props': 'error',
308312

309-
'react/forbid-elements': ['off', {
310-
forbid: [
311-
],
312-
}],
313-
314313
// Forbids using non-exported propTypes
315314
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-foreign-prop-types.md
316315
'react/forbid-foreign-prop-types': 'off',

0 commit comments

Comments
 (0)