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:
committed by
Jan Lysý
parent
b19c30d203
commit
a3514377c8
@ -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' },
|
||||
|
Reference in New Issue
Block a user