Skip to content

Added TSLint - #78

Merged
lolleko merged 5 commits into
masterfrom
linter
Mar 24, 2018
Merged

Added TSLint#78
lolleko merged 5 commits into
masterfrom
linter

Conversation

@lolleko

@lolleko lolleko commented Mar 23, 2018

Copy link
Copy Markdown
Member

Fixed all existing linter issues

Comment thread src/Transpiler.ts Outdated

let header = "";
if (options.addHeader) {
header = "-- Generated by TypescriptToLua transpiler " +

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we add a version here?

Comment thread src/Transpiler.ts Outdated
if (member.initializer) {
if (ts.isNumericLiteral(member.initializer)) {
val = parseInt(member.initializer.text);
val = parseInt(member.initializer.text, 10);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does it really require the base for parseInt? that seems excessive.

Comment thread tslint.json
}
],
"interface-name": false
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"radix": false pls

lolleko and others added 3 commits March 24, 2018 14:46
@lolleko
lolleko merged commit df78cfb into master Mar 24, 2018
@Perryvw
Perryvw deleted the linter branch March 25, 2018 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants