chore(tslint): disallow variable names that look like keywords.

We've had issues such as the one I documented: https://github.com/Microsoft/TypeScript/issues/5187
This tslint check prevents this happening again.
This change also updates to the newest tslint which gets typings from npm.

Closes #4970
This commit is contained in:
Alex Eagle
2015-10-27 20:51:03 -07:00
committed by Alex Eagle
parent 25ddd8718d
commit c90e1920f5
7 changed files with 708 additions and 275 deletions

View File

@ -48,7 +48,7 @@ export enum NumberFormatStyle {
}
export class NumberFormatter {
static format(number: number, locale: string, style: NumberFormatStyle,
static format(num: number, locale: string, style: NumberFormatStyle,
{minimumIntegerDigits = 1, minimumFractionDigits = 0, maximumFractionDigits = 3,
currency, currencyAsSymbol = false}: {
minimumIntegerDigits?: number,
@ -67,7 +67,7 @@ export class NumberFormatter {
intlOptions.currency = currency;
intlOptions.currencyDisplay = currencyAsSymbol ? 'symbol' : 'code';
}
return new Intl.NumberFormat(locale, intlOptions).format(number);
return new Intl.NumberFormat(locale, intlOptions).format(num);
}
}