Skip to content
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

[Question] Why is "ConditionalExpression" ignored in the "indent" config? #64

Open
t-rad679 opened this issue Dec 16, 2019 · 2 comments

Comments

@t-rad679
Copy link

This does not match the style guide and seems generally like an unintuitive choice. What's up wit dat?

@t-rad679
Copy link
Author

After playing around with it some more, I think I misunderstood what this does. I previously thought ignoring a node meant that ESLint would apply the default rules to those nodes, but now I am under the impression it means to apply no rules to the node. My question remains, however, along with an additional one:

There doesn't seem to be an indent config option for ConditionalExpression (or at least I can't find one). This seems like a gross oversight; I can't get my ternary expressions to match with everything else, and I'm not sure why this would be excluded.

@t-rad679
Copy link
Author

I guess the second question might be good to ask the ESLint project. Please excuse the asking of an irrelevant question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant