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

feat(ordered-imports): support importEqualsDeclaration #3102

Conversation

ikatyang
Copy link
Contributor

@ikatyang ikatyang commented Aug 7, 2017

PR checklist

Overview of change:

Fixes #3043

Is there anything you'd like reviewers to focus on?

CHANGELOG.md entry:

[enhancement] ordered-imports: support importEqualsDeclaration

@palantirtech
Copy link
Member

Thanks for your interest in palantir/tslint, @ikatyang! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

Copy link
Contributor

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

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

nice work, thanks @ikatyang!

@@ -214,7 +250,7 @@ interface ImportDeclaration {
class ImportsBlock {
private importDeclarations: ImportDeclaration[] = [];

public addImportDeclaration(sourceFile: ts.SourceFile, node: ts.ImportDeclaration, sourcePath: string) {
public addImportDeclaration(sourceFile: ts.SourceFile, node: ImportDeclaration["node"], sourcePath: string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

neat, I didn't know about this type syntax!

@adidahiya adidahiya merged commit d013680 into palantir:master Aug 7, 2017
@ikatyang ikatyang deleted the ordered-imports-support-import-equals-declaration branch August 7, 2017 15:38
HyphnKnight pushed a commit to HyphnKnight/tslint that referenced this pull request Apr 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ordered-imports: missing ImportEqualsDeclaration
3 participants