We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99261e2 commit 78245b3Copy full SHA for 78245b3
.eslintrc.js
@@ -65,5 +65,12 @@ module.exports = {
65
'react/destructuring-assignment': 'off',
66
'no-plusplus': 'off',
67
strict: 'off',
68
+ // We don't require 'defaultProps' for function components (they're
69
+ // deprecated: https://github.com/facebook/react/pull/16210).
70
+ // It's better to use native JavaScript/TypeScript defaults and TS types.
71
+ 'react/require-default-props': ['error', {
72
+ classes: 'defaultProps',
73
+ functions: 'ignore',
74
+ }],
75
},
76
};
0 commit comments