.eslintignore ignored by create-react-app?

I placed the file .eslintignorein the root of my installation to create a reaction-application, so I can ignore warnings from libor providers.

It works fine if I run eslint from the command line:

./node_modules/.bin/eslint src/js/vendor/jquery.js
...warnings ignored...

However, launching npm startand npm run buildseems to ignore the ignore file.

How can I achieve what I want to do here - without editing separate vendor files to add eslint options?

+4
source share
2 answers

YES .eslintignore is ignored. According to this question .

CRA 1.x + .eslintignore. !

Workarround

  • /* eslint-disable */ .

  • public/ NPM.

+1

, , .eslintignore . .eslintignore

src/js/vendor/
src/vendor/
0

Source: https://habr.com/ru/post/1670211/


All Articles