Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/examples/example-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export class ExampleData {
}
this.selectorName = this.indexFilename = `${example}-example`;

var exampleName = example.replace(/(?:^\w|\b\w)/g, function(letter) {
return letter.toUpperCase();
});
let exampleName = example.replace(/(?:^\w|\b\w)/g, letter => letter.toUpperCase());

if (EXAMPLE_COMPONENTS[example].title) {
this.description = EXAMPLE_COMPONENTS[example].title;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/button-toggle/button-toggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const MD_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR: any = {
multi: true
};

var _uniqueIdCounter = 0;
let _uniqueIdCounter = 0;

/** Change event object emitted by MdButtonToggle. */
export class MdButtonToggleChange {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/checkbox/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export class MdCheckbox implements ControlValueAccessor, AfterViewInit, OnDestro

private _getAnimationClassForCheckStateTransition(
oldState: TransitionCheckState, newState: TransitionCheckState): string {
var animSuffix: string;
let animSuffix: string;

switch (oldState) {
case TransitionCheckState.Init:
Expand Down
2 changes: 1 addition & 1 deletion src/lib/radio/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const MD_RADIO_GROUP_CONTROL_VALUE_ACCESSOR: any = {
multi: true
};

var _uniqueIdCounter = 0;
let _uniqueIdCounter = 0;

/** Change event object emitted by MdRadio and MdRadioGroup. */
export class MdRadioChange {
Expand Down
1 change: 1 addition & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"no-shadowed-variable": true,
"no-unused-expression": true,
"no-unused-var": [true, {"ignore-pattern": "^(_.*)$"}],
"no-var-keyword": true,
"no-debugger": true,
"one-line": [
true,
Expand Down