Skip to content

Commit

Permalink
feat: Update eslint rule for typescript to use default arguments for …
Browse files Browse the repository at this point in the history
…default props
  • Loading branch information
nicholasio committed May 20, 2024
1 parent 6ca808b commit f0465ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-toys-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@10up/eslint-config": minor
---

Update eslint rule for typescript to use default arguments for default props.
2 changes: 2 additions & 0 deletions packages/eslint-config/config/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ module.exports = {
files: ['*.ts', '*.tsx'],
rules: {
'react/prop-types': 0,
'react/require-default-props': ['error', { functions: 'defaultArguments' }],
'jsdoc/require-returns-type': 'off',
},
},
],
Expand Down

0 comments on commit f0465ca

Please sign in to comment.