-
Notifications
You must be signed in to change notification settings - Fork 93
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
eslint + flow support #23
Comments
Thanks for pointing out issues with flow & eslint, @eleith! I'm using typescript in most of my projects, so I didn't encounter this yet. I'll add a link to this issue in the readme to help other flow & eslint users. |
Thanks 👍 I needed the SVG as well, here is a more complete regex:
|
in my
and it stops eslint-plugin-import from reporting a |
@cyrilwanner this can't be closed by this project, so i recommend closing this ticket. |
The answer is a little out of date now. There is a resize option that includes an additional param of size, for example: This is the regular expression I ended up using, but it is very loose at the end; you might want to tighten it up by limiting the options you can pass to it.
|
my project uses eslint + flow
importing images generally works because they can be found on the file system, but when adding query params, this throws off both eslint and flow.
my workaround right now is to update
.flowconfig
to strip the queryand to add
// eslint-disable-line import/no-unresolved
on the import line when i do use a query.not sure what the best way to fix this. either some extra settings for eslint-plugin-import or to have a different api for how to trigger special actions that don't involve changing up the import line.
either way, this might not be a bug for this repo, but filing it here, in case others run into this. feel free to close.
The text was updated successfully, but these errors were encountered: