Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Add JSX spread attribute case statement to SyntaxWalker? #1514

Closed
bolatovumar opened this issue Aug 24, 2016 · 2 comments
Closed

Add JSX spread attribute case statement to SyntaxWalker? #1514

bolatovumar opened this issue Aug 24, 2016 · 2 comments

Comments

@bolatovumar
Copy link
Contributor

SyntaxWalker has no case statement for ts.SyntaxKind.JsxSpreadAttribute. Is there a reason it's missing?

I'm trying to write a jsx-curly-spacing rule for TSLint React but I can't target spread attributes unfortunately.

@jkillian
Copy link
Contributor

👍 In the meantime, just override visitNode and check if the node.kind is the kind you're looking for

@adidahiya
Copy link
Contributor

@bolatovumar generally we take PRs for additions to SyntaxWalker like that as they come up instead of trying to enumerate them all at once -- feel free to send a PR for an additional visitor method with its associated rationale any time

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

No branches or pull requests

3 participants