diff --git a/.eslintrc.cjs b/.eslintrc.cjs index cba5bedf8..7c2a9c9f6 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -85,6 +85,13 @@ module.exports = { 'react/no-unknown-property': ['error', { ignore: ['css'] }], + /** + * Warning on props spreading cause typescript doesn't check type on it: + * https://github.com/microsoft/TypeScript/issues/18801#issuecomment-332610604 + * Explicit spread is allow, example: + */ + 'react/jsx-props-no-spreading': ['warn', { explicitSpread: 'ignore' }], + // Auto fixable lint error 'prefer-const': 'error', 'padding-line-between-statements': [