Skip to content

Commit 7037df9

Browse files
author
devgioele
committed
add rule react/jsx-curly-brace-presence to ts-react config
1 parent cef6c92 commit 7037df9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ts-react.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ module.exports = {
1919
}
2020
},
2121
rules: {
22+
curly: ['error', 'all'],
23+
'react/jsx-curly-brace-presence': [
24+
'error',
25+
{ props: 'never', children: 'never', propElementValues: 'always' }
26+
],
2227
'react-hooks/rules-of-hooks': 'error',
2328
'react-hooks/exhaustive-deps': 'error',
24-
'tailwindcss/classnames-order': 'off',
25-
curly: ['error', 'all']
29+
'tailwindcss/classnames-order': 'off'
2630
}
2731
}

0 commit comments

Comments
 (0)