You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to configure eslint with the airbnb config for my react native project.
To have nicer import statements I've a package.json in my src folder in which i declare a new 'src' package so I can have import like:
import ExamForm from "src/containers/examFormContainer";
and not like:
import ExamForm from "../../../../containers/examFormContainer";
but can't find how configure eslint-plugin-import
to not throw the "src should be listed in the project's dependencies".
How I can configure it?
this is the sub folder's package.json file
{
"name":"src",
"version":"0.1.0"
}
Thanks,
Frank
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to configure eslint with the airbnb config for my react native project.
To have nicer import statements I've a package.json in my src folder in which i declare a new 'src' package so I can have import like:
import ExamForm from "src/containers/examFormContainer";
and not like:
import ExamForm from "../../../../containers/examFormContainer";
but can't find how configure eslint-plugin-import
to not throw the "src should be listed in the project's dependencies".
How I can configure it?
this is the sub folder's package.json file
Thanks,
Frank
The text was updated successfully, but these errors were encountered: