redux – Disable in EsLint react / jsx-props-no-spreading error in Reactjs

redux – Disable in EsLint react / jsx-props-no-spreading error in Reactjs

Try turning off the react/jsx-props-no-spreading rule:

module.exports = {
  extends: ../../.eslintrc.js,
  rules: {
    import/no-extraneous-dependencies: [error,  {devDependencies: true}],
    react/jsx-props-no-spreading: off,
  },
  env: {
    jest: true
  }
};

As an example if there is not so much errors you can ignore them by
// eslint-disable-next-line

Or you can write for concrete error like

// eslint-disable jsx-props-no-spreading

redux – Disable in EsLint react / jsx-props-no-spreading error in Reactjs

Leave a Reply

Your email address will not be published.