Skip to content

Commit 356b120

Browse files
authoredMar 8, 2022
Apply react/jsx-filename-extension rule as needed (#1135)
1 parent daabe4e commit 356b120

File tree

200 files changed

+76
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+76
-48
lines changed
 

‎.changeset/weak-dancers-repair.md

+19

‎.eslintrc.js

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ module.exports = {
2626
plugins: ['react-hooks'],
2727
rules: {
2828
'react/display-name': 'off',
29+
'react/jsx-filename-extension': ['error', {
30+
allow: 'as-needed',
31+
extensions: ['.tsx', '.jsx']
32+
}],
2933
'react/prop-types': 'off',
3034
'react/react-in-jsx-scope': 'off',
3135
'react-hooks/exhaustive-deps': 'warn',

0 commit comments

Comments
 (0)
Please sign in to comment.