.eslintignore is ignored by create-react-app?

This was fixed with this commit in CRA codebase: https://github.com/facebook/create-react-app/commit/6f5221c2d7df0b7a097cfdd461967422c3013e12#diff-dc0c4e7c623b73660da1809fc60cf6ba

Simply add EXTEND_ESLINT=true to a .env file in your project root.


YES .eslintignore is ignored. According to this issue.

CRA 1.x+ purposely does not support .eslintignore. Sorry!

Workarround

  • add /* eslint-disable */ to the beginning of the file.

  • move vendor files into public/ or use a NPM package.