Skip to content

Commit 8f6d2dc

Browse files
authored
fix(eslint-config-react/typescript): full disable proptypes in ts files (#1122)
* fix(eslint-config-react): full disable proptypes in ts files * fix: comment
1 parent 444dc1d commit 8f6d2dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/eslint-config-react/typescript.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ module.exports = {
2626
// https://react-typescript-cheatsheet.netlify.app/docs/basic/getting-started/default_props/#you-may-not-need-defaultprops
2727
// https://twitter.com/dan_abramov/status/1133878326358171650
2828
'react/require-default-props': 'off',
29+
'react/prop-types': 'off',
30+
31+
// To allow <>{expression}</>
2932
'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }],
3033
},
3134
}

0 commit comments

Comments
 (0)