-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Parse comments #158
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
Comments
@mohsen1 To clarify, are you asking for a top-level |
To clarify, this is only necessary when using the parser directly - ESLint will already enable this flag in its config at parse time. |
Thanks Kai, that should fix your issue @mohsen1 |
This comment has been minimized.
This comment has been minimized.
@armano2 ESLint performs the comment attribution |
@armano2 For ESLint's purposes, comment attachment is no longer used and has been deprecated since ESLint v4. Unless there's another use for that feature, I don't think it's needed here. And having worked with comment attachment a lot at this point, I recommend not going down that rabbit hole! |
yup, i got this information already, as @JamesHenry pointed out eslint/js@1bcd563 |
I want to be able to write a rule that warns against unnecessary
@ts-ignore
commentsWhat code were you trying to parse?
What did you expect to happen?
Like Babylon or Flow parsers, emit a list of comments next to list of statements
What actually happened?
No comments list is emitted
Versions
Tried in AST Explorer
@typescript-eslint/parser
1.1.0
The text was updated successfully, but these errors were encountered: