-
Notifications
You must be signed in to change notification settings - Fork 26.6k
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
Rules for nullish coalescing and optional chaining #2146
Comments
Once they're added to babel-preset-airbnb by airbnb folks, and once appropriate eslint rules for them exist, then they'll be added to this guide. |
Doesn't this exist now? |
The former has happened; I don't believe there's been any new eslint rules for them. If there's changes needed in the configs to allow the syntax (other than #2223), happy to review a PR that adds them. |
it looks like syntax support for optional-chaining was added to eslint in v7.5.0, so to avoid the need to use if i were to send a PR, would this be the proper place to apply that update?
i dont think setting the |
Which version of eslint started supporting an ecmaVersion of Since we currently allow eslint v5.16, v6.8, or v7.2, it would indeed be a breaking change to change the ecmaVersion to 2020. In the meantime, it seems pretty simple to set that yourself in your own config? |
yep, and I've already done so: https://github.com/form8ion/eslint-config/blob/f332890c401b1d796dc459322a3f7cbc646f4d44/index.js#L11-L13, but was hoping to help here if it could be useful.
yeah, that makes sense
yeah, that seems like the earliest introduction, so it seems this would be premature until the lowest supported version here is raised. sounds like it's best to continue with this just in my own config for now. thanks for all of your efforts here. |
I noticed that babel-preset-airbnb added the following stage 4 proposals in v4.2.0:
Are there any rules/guidelines for these features?
The text was updated successfully, but these errors were encountered: