Skip to content

Commit f1f1fc8

Browse files
committed
Add ESLint rule to self close components
Related links: - prettier/prettier#6240 - prettier/prettier#6127
1 parent 68f2289 commit f1f1fc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ module.exports = {
230230
'react/prop-types': 'off',
231231
'react/react-in-jsx-scope': 'warn',
232232
'react/require-render-return': 'warn',
233+
'react/self-closing-comp': 'warn',
233234
'react/style-prop-object': 'warn',
234235

235236
// https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks

0 commit comments

Comments
 (0)