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

Adds semicolon option ignore-bound-class-methods #1643

Merged
merged 4 commits into from
Nov 2, 2016

Conversation

nchen63
Copy link
Contributor

@nchen63 nchen63 commented Oct 19, 2016

also changes default behavior by requiring semicolons to not come after bound class methods unless this setting is used

closes #1476

@palantirtech
Copy link
Member

Thanks for your interest in palantir/tslint, @nchen63! 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.

@nchen63
Copy link
Contributor Author

nchen63 commented Oct 19, 2016

@jkillian @adidahiya

@@ -10,6 +10,7 @@

Copy link
Contributor

Choose a reason for hiding this comment

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

this file update shouldn't be in this PR, it should only happen when you're updating the docs as a whole (on release)

@@ -21,6 +21,7 @@ import * as Lint from "../lint";

const OPTION_ALWAYS = "always";
const OPTION_NEVER = "never";
const OPTION_ALLOW_BOUND_CLASS_METHODS = "allow-bound-class-methods";
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe it should be "skip-bound-class-methods"?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh wait, we already have an "ignore-interfaces" option, this should be "ignore-bound-class-methods" then

@@ -21,6 +21,7 @@ import * as Lint from "../lint";

const OPTION_ALWAYS = "always";
const OPTION_NEVER = "never";
const OPTION_ALLOW_BOUND_CLASS_METHODS = "ignore-bound-class-methods";
Copy link
Contributor

Choose a reason for hiding this comment

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

naming of variable

Copy link
Contributor

@jkillian jkillian 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, other than one above comment

@nchen63 nchen63 changed the title Adds semicolon option allow-bound-class-methods Adds semicolon option ignore-bound-class-methods Nov 2, 2016
@nchen63 nchen63 merged commit 5ada6a5 into master Nov 2, 2016
@adidahiya adidahiya deleted the bound-method-semicolon branch November 3, 2016 01:44
jkillian referenced this pull request in microsoft/TypeScript Nov 4, 2016
…ut unnecessary semicolons following properties
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.

Semicolon rule should flag unnecessary semicolons on class member functions
4 participants