Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Conversation

JoshuaKGoldberg
Copy link

@JoshuaKGoldberg JoshuaKGoldberg commented Dec 8, 2018

Includes @IllusionMH's changes to exportNameRule.ts from #666. This shouldn't be merged in until that PR is.

Continues #491.

Includes @IllusionMH's changes to `exportNameRule.ts` from #666. This shouldn't be merged in until that PR is.

Continues #491.
Copy link
Contributor

@IllusionMH IllusionMH left a comment

Choose a reason for hiding this comment

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

Looks good.

Not sure if there should be test for import-name here or in separate PR.

protected visitImportDeclaration(node: ts.ImportDeclaration): void {
if (node.importClause!.name !== undefined) {
const name: string = node.importClause!.name!.text;
if (node.importClause !== undefined && node.importClause.name !== undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This change should fix exception mentioned in #667 (comment), however not sure if helps with original exception #667.
May be worth to add test for import 'some-module'; after #665 will be merged?

Copy link
Author

Choose a reason for hiding this comment

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

Agreed - filed #671

}

protected visitPropertyAssignment(node: ts.PropertyAssignment): void {
super.visitPropertyAssignment(node);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@JoshuaKGoldberg JoshuaKGoldberg merged commit c2709bd into microsoft:master Dec 13, 2018
@JoshuaKGoldberg JoshuaKGoldberg deleted the no-non-null-assertion branch December 13, 2018 21:37
@IllusionMH IllusionMH added this to the 6.1.0-beta milestone Feb 19, 2019
apawast pushed a commit to lupine86/tslint-microsoft-contrib that referenced this pull request Feb 26, 2019
Includes @IllusionMH's changes to `exportNameRule.ts` from microsoft#666. This shouldn't be merged in until that PR is.

Continues microsoft#491.
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.

2 participants