Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

eslintConfig not being honored for rules overrides

$
0
0

I can’t seem to get any eslintConfig rules overrides to actually take effect in my Ionic React app.

I have the following in my package.json file:

  "eslintConfig": {
    "extends": "react-app",
    "rules": {
      "jsx-a11y/anchor-is-valid": "off",
      "react-hooks/exhaustive-deps": "off"
    }
  },

but I’m still seeing those errors/warnings reported in both ionic serve output and ionic build output.

I have also tried adding an .eslintrc file at the root of the project with:

{
  "rules": {
    "jsx-a11y/anchor-is-valid": "off",
    "react-hooks/exhaustive-deps": "off"
  }
}

but that doesn’t work either. Where should I be placing my eslint rule overrides to make them work?

Thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>