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

Support Optional Chaining in Rules #1051

Closed
22 of 25 tasks
bradzacher opened this issue Oct 8, 2019 · 10 comments
Closed
22 of 25 tasks

Support Optional Chaining in Rules #1051

bradzacher opened this issue Oct 8, 2019 · 10 comments
Labels
enhancement New feature or request package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@bradzacher
Copy link
Member

bradzacher commented Oct 8, 2019

Spinning off of #1033

Rules that need to have support added for optional chaining.
This list was based on a simple grep for MemberExpression and CallExpression, I haven't validated anything beyond that. There are probably extra rules that could do with support as well that don't check MemberExpression and CallExpression.

Rules that require a simple one-line change (i.e. adding a selector):

Rules that require a larger enhancement to support (i.e. new feature in rule):

Extension rules that will be a pain to update (i.e. base extension rewrite):

  • indent / indent-new-do-not-use
  • no-extra-parens
    • This one will be a huge pain, and I believe it will involve us duplicating the base rule. The logic is relatively complex, so this is a non-trivial task.
  • no-unused-vars

Broken rules due to ESLint not supporting the new AST nodes:

@jeroenvisser101

This comment has been minimized.

@bradzacher
Copy link
Member Author

bradzacher commented Oct 18, 2019

This is issue about enhancing rules by adding support for the new AST.

If you have a bug, please search to see if an issue exists already, or file a new issue if it doesn't

@jeroenvisser101

This comment has been minimized.

@hisuwh

This comment has been minimized.

@bradzacher

This comment has been minimized.

@bradzacher
Copy link
Member Author

Looking into it - no-extra-parens is going to require a much bigger change because of the current implementation.

@kevinhylant

This comment has been minimized.

@bradzacher
Copy link
Member Author

We are a community run project, meaning we rely on community support to get things done outside of critical bugfixes or core infrastructure.
So the timeline is "whenever someone feels like they need this done, and gets around to it".

Happy to accept a PR if there's something missing that is important to you.

@disovi

This comment has been minimized.

@bradzacher

This comment has been minimized.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

No branches or pull requests

5 participants