Skip to content

Commit

Permalink
feat: Don't require default props in TSX files
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Jul 12, 2024
1 parent 99261e2 commit 81d21d0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,13 @@ module.exports = {
'no-plusplus': 'off',
strict: 'off',
},
overrides: [
{
// Disable default-props for TypeScript files; it's fine to have undefined prop values if declared that way
files: ['**/*.tsx'],
rules: {
'react/require-default-props': 'off',
},
},
],
};

0 comments on commit 81d21d0

Please sign in to comment.