-
Notifications
You must be signed in to change notification settings - Fork 885
Adds semicolon option ignore-bound-class-methods
#1643
Conversation
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. |
@@ -10,6 +10,7 @@ | |||
|
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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"?
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naming of variable
There was a problem hiding this 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
allow-bound-class-methods
ignore-bound-class-methods
…ut unnecessary semicolons following properties
also changes default behavior by requiring semicolons to not come after bound class methods unless this setting is used
closes #1476