Skip to content

Commit 365e441

Browse files
committed
fix: allow jsx syntax in tsx files
1 parent 6d6c280 commit 365e441

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ module.exports = {
100100
},
101101
],
102102
'react/jsx-props-no-spreading': ['off'],
103+
'react/jsx-filename-extension': [
104+
'error',
105+
{ allow: 'as-needed', extensions: ['.jsx', '.tsx'] },
106+
],
103107
},
104108
parser: 'babel-eslint',
105109
env: {

0 commit comments

Comments
 (0)