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

Require semicolon for function declaration with no body #1447

Merged
merged 3 commits into from Aug 23, 2016
Merged

Require semicolon for function declaration with no body #1447

merged 3 commits into from Aug 23, 2016

Conversation

ghost
Copy link

@ghost ghost commented Aug 1, 2016

I suggest that all function declarations without bodies be required to end in a semicolon.
What do you think of this rule?
This would apply to both overloads and to functions in .d.ts declarations.

@jkillian
Copy link
Contributor

jkillian commented Aug 7, 2016

I agree with this, although I'm a little worried because it's technically a breaking change. Think consumers would mind this change? I'd rather not bump a major version for it

@jkillian
Copy link
Contributor

Slating this for an upcoming 4.0 release (in a couple weeks probably?)

@jkillian jkillian modified the milestone: TSLint v4.0 Aug 11, 2016
@ghost
Copy link
Author

ghost commented Aug 11, 2016

Great!

@jkillian jkillian merged commit b1d4448 into palantir:master Aug 23, 2016
soniro pushed a commit to soniro/tslint that referenced this pull request Aug 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant