Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions tools/eslint/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ export default dedupePlugins( [
definedTags: [ 'jest-environment' ],
},
],
'react/jsx-filename-extension': [
'error',
{ extensions: [ '.tsx' ] },
],
'react-hooks/config': [
'error',
{
Expand Down Expand Up @@ -670,20 +674,6 @@ export default dedupePlugins( [
},
},

// Override: Storybook + components — enforce JSX file extensions.
{
files: [
'**/@(storybook|stories)/**',
'packages/components/src/**/*.tsx',
],
rules: {
'react/jsx-filename-extension': [
'error',
{ extensions: [ '.jsx', '.tsx' ] },
],
},
},

// Override: Relax JSDoc parameter rules for TypeScript components. A
// component always receives props and returns a React element, and its
// props should be documented through its TypeScript props types.
Expand Down
Loading
Loading