Move default props to default parameters - simple cases

React throws a deprecation warning for defaultProps.
This commit refactors default props to default values in easy-to-fix cases.

[MAILPOET-6108]
This commit is contained in:
Rostislav Wolny
2024-06-13 16:57:04 +02:00
committed by Jan Lysý
parent b19c30d203
commit a3514377c8
59 changed files with 438 additions and 669 deletions

View File

@ -38,6 +38,7 @@ module.exports = [
'no-underscore-dangle': 0, // Backbone uses underscores, we cannot remove them
'import/no-default-export': 1, // no default exports
'no-only-tests/no-only-tests': 2,
'react/require-default-props': 0, // deprecated in react 18.3.1
'check-file/filename-naming-convention': [
'error',
{ '**/*.*': 'KEBAB_CASE' },