Where can I find .eslintrc in CRA? Where can I find .eslintrc in CRA? reactjs reactjs

Where can I find .eslintrc in CRA?


Package.json in your CRA app contains this

"eslintConfig": {  "extends": "react-app"},

You should just be able to create a .eslintrc file and that will get picked up instead.

The config can be found at https://github.com/facebook/create-react-app/tree/master/packages/eslint-config-react-app

It uses these plugins

['import', 'flowtype', 'jsx-a11y', 'react', 'react-hooks'].

Personally think you would be better off with the Airbnb eslint rules or if you want something more comprehensive checkout eslint-config-auto