-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doesn't respect .eslintignore #2339
Comments
CRA 1.x+ purposely does not support Please move vendor files into |
But that's a problem because than I can't import it inside the project. Moreover, if it's on the public path and I can't import it, it means more network request for a tiny file that |
Does |
|
I see. If you must opt out, simply add |
That's what I'm doing now as a work around. I've just hope I could use more elegant way for automated file creation. Thanks though |
@oriSomething I've been trying to do this with no luck. I have the output if I do |
@sonarforte Hey, Modernizr creates a file which doesn't play with ES6 module. It uses browser globals. So using it it's like this: import "./path/to/modernizr";
const { Modernizr } = window; |
really need |
Is there a valid reason for this? |
See #2115 for context. |
@Timer so every time I generate whole bunch of code I have to prepend |
It seems like swagger supports templates which would allow you to place tl;dr yes, but don't do this by hand |
Really swagger codegen supports templates? Didn't know that... Anyways thanks for your help! |
package.json |
@lileilei You will still see errors on browser's devTools |
@oriSomething But, I'm ok. You try to check your path |
/* eslint-disable */ where we want to add this line in react |
@oriSomething sorry ,package.json set "eslintIgnore": ["src/lib/**"] ,It only works in eject mode |
@oriSomething Your suggestion to add eslintIgnore to package.json worked for me. I had ejected then added src/.eslintrc.json and was having issues with registerServiceWorker.js being linted . This worked -> In case anyone else is having issues the path is strict. |
Can you reproduce the problem with latest npm?
yes
Description
create-react-app
1.x doesn't respect.eslintignore
. (It was use to respect it on version0.9.x
).Expected behavior
Not showing ESLint warning/errors of files in the
.eslintignore
fileActual behavior
See warning such as:
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected):react-scripts@1.0.5
node -v
:v6.10.0
yarn -v
:v0.24.5
Then, specify:
Reproducible Demo
.eslintignore
:src/vendor.js
:src/index.js
:The text was updated successfully, but these errors were encountered: