Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

feat: fix issues in AST #42

Merged
merged 2 commits into from
Dec 19, 2018
Merged

Conversation

armano2
Copy link
Contributor

@armano2 armano2 commented Dec 1, 2018

This PR adds declare to nodes:

  • FunctionDeclaration
  • TSDeclareFunction
  • VariableDeclaration
  • TSInterfaceDeclaration
  • ClassDeclaration
  • ClassExpression
  • TSAbstractClassDeclaration
  • TSAbstractClassExpression

changes: DeclareFunction to TSDeclareFunction
changes: VariableDeclarator[kind='type'] to TSTypeAliasDeclaration
makes abstract optional in interfaces

fixes: #17 eslint/typescript-eslint-parser#414

@armano2 armano2 changed the title WIP: align declare with babel WIP: fix issues in AST Dec 1, 2018
@armano2
Copy link
Contributor Author

armano2 commented Dec 1, 2018

i feel like i should split this PR cus alignment changes are getting big

@armano2 armano2 changed the title WIP: fix issues in AST fix issues in AST Dec 5, 2018
@armano2 armano2 force-pushed the align-nodes branch 2 times, most recently from 7507043 to 89f2fea Compare December 5, 2018 21:09
@armano2 armano2 changed the title fix issues in AST feat: fix issues in AST Dec 5, 2018
@JamesHenry
Copy link
Owner

@armano2 Got some conflicts from merging your other PR. Please could you also be sure to add:

BREAKING CHANGE: This changes the AST

As the body of your commit

That will trigger a major version to be released and for the release notes to contain info about the breaking change.

@ikatyang @j-f1 Please could you take a look at this, this will undoubtedly affect prettier

@armano2
Copy link
Contributor Author

armano2 commented Dec 13, 2018

@JamesHenry thats why i wanted to split this to few commits, and looks like i'm going to do so.

BREAKING CHANGE: This changes the AST
@armano2
Copy link
Contributor Author

armano2 commented Dec 13, 2018

@JamesHenry updated

BREAKING CHANGE: This changes the AST
@armano2
Copy link
Contributor Author

armano2 commented Dec 15, 2018

@ikatyang i merge PR #44 to this one and i enabled more alignment tests

@armano2
Copy link
Contributor Author

armano2 commented Dec 17, 2018

@JamesHenry is there something i have to change in this PR?

Copy link
Owner

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, thanks! Been looking forward to this change for like a year 😂

@JamesHenry JamesHenry merged commit 159c325 into JamesHenry:master Dec 19, 2018
@armano2 armano2 deleted the align-nodes branch December 19, 2018 02:04
@JamesHenry
Copy link
Owner

🎉 This PR is included in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Parsing type aliases
3 participants