Skip to content

Commit 20e1471

Browse files
author
Dirk Haage
committed
feat(react): add missing rules
1 parent 5d73162 commit 20e1471

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

  • packages/eslint-config-react/rules

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,27 @@ module.exports = {
5656
},
5757
],
5858

59+
/*
60+
Enforce that namespaces are not used in React elements
61+
https://github.com/yannickcr/eslint-plugin-react/blob/8785c169c25b09b33c95655bf508cf46263bc53f/docs/rules/no-namespace.md
62+
TODO: part of but not enabled yet as of airbnb@18.2.1, remove when enabled
63+
*/
64+
'react/no-namespace': 'warn',
65+
5966
/*
6067
Prevent creating unstable components inside components
6168
https://github.com/yannickcr/eslint-plugin-react/blob/c2a790a3472eea0f6de984bdc3ee2a62197417fb/docs/rules/no-unstable-nested-components.md
6269
TODO: not released as of airbnb@18.2.1, recheck when released
6370
*/
6471
'react/no-unstable-nested-components': 'warn',
6572

73+
/*
74+
Prefer exact proptype definitions
75+
https://github.com/yannickcr/eslint-plugin-react/blob/8785c169c25b09b33c95655bf508cf46263bc53f/docs/rules/prefer-exact-props.md
76+
TODO: part of but not enabled yet as of airbnb@18.2.1, remove when enabled
77+
*/
78+
'react/prefer-exact-props': 'off',
79+
6680
/*
6781
Disallow unnecessary fragments
6882
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-useless-fragment.md

0 commit comments

Comments
 (0)