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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user