Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
eslint + flow support #23
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
[ignore] [include] [libs] [lints] [options] module.name_mapper='^\(.+\.\(png\|gif\|jpg\|webp\)\)\?\(url\|original\|include\|inline\|webp\|sprite\)$' -> '\1' [strict]
and to add
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.
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.
and it stops eslint-plugin-import from reporting a