I have one project which uses ESLint and the other one which doesn't, but I want to cover both without having to switch the "ESLint Integration" option on and off. I suggest altering the behavior of it to not crash without ESLint config, but instead to fall back to regular prettier.
What do you think?
Yeah absolutely, we should do this. I would almost consider it a bug. Do we need an option like Fallback to prettier if no ESlint configuration found?
I don't think the option is necessary, it's very intuitive and in my opinion always desired behavior. Unless there's an edge case that I'm overlooking.
@silvenon I was thinking that it might be confusing if they check "ESlint Integration" and then we don't actually do the integration in some cases, but I can just maybe add that in the description and skip the option?
That would make sense to me, yes.
I'm going to close this because right now prettier-eslint now does this automatically. Keep an eye out for this though: https://github.com/prettier/prettier-eslint/issues/72
Most helpful comment
@silvenon I was thinking that it might be confusing if they check "ESlint Integration" and then we don't actually do the integration in some cases, but I can just maybe add that in the description and skip the option?