We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to be able to configure this plugin such that:
Bad:
const arrow = () => { return a ? b : c; // error because it's a return statement }; function fn() { return a ? b : c; }
Good:
const arrow = () => a ? b : c; const arrowWithReturn = () => { if (a) { return b; } else { return c; } }; function fn() { if (a) { return b; } else { return c; } }
I can get almost there with the @getify/proper-ternary/where rule, except that I don't want () => a ? b : c to be an error.
@getify/proper-ternary/where
() => a ? b : c
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'd like to be able to configure this plugin such that:
Bad:
Good:
I can get almost there with the
@getify/proper-ternary/where
rule, except that I don't want() => a ? b : c
to be an error.The text was updated successfully, but these errors were encountered: