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

member-access: add fixer #2969

Merged
merged 5 commits into from Aug 7, 2017
Merged

member-access: add fixer #2969

merged 5 commits into from Aug 7, 2017

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Jun 29, 2017

PR checklist

Overview of change:

[new-fixer] member-access
Fixes: #2967

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

CHANGELOG.md entry:

[new-fixer] `member-access`
Fixes: #2967
@@ -118,18 +119,35 @@ function walk(ctx: Lint.WalkContext<Options>) {
return;
}

const isPublic = Lint.hasModifier(node.modifiers, ts.SyntaxKind.PublicKeyword);
let publicKeyword: ts.Node | 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 feels like it could be separated into a tsutils function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍
I added a getModifier utility to tsutils. I don't know if I release a new version this week though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@adidahiya adidahiya merged commit 453b726 into palantir:master Aug 7, 2017
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.

--fix for explicit privacies in member-access
3 participants