build: enable TSLint on the packages folder
This commit is contained in:

committed by
Alex Rickabaugh

parent
e64b54b67b
commit
9479a106bb
@ -83,14 +83,17 @@ export class DefaultValueAccessor implements ControlValueAccessor {
|
||||
this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
_handleInput(value: any): void {
|
||||
if (!this._compositionMode || (this._compositionMode && !this._composing)) {
|
||||
this.onChange(value);
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
_compositionStart(): void { this._composing = true; }
|
||||
|
||||
/** @internal */
|
||||
_compositionEnd(value: any): void {
|
||||
this._composing = false;
|
||||
this._compositionMode && this.onChange(value);
|
||||
|
@ -41,7 +41,7 @@ export function main() {
|
||||
return e;
|
||||
}
|
||||
|
||||
function otherObservableValidator() { return of ({'other': true}) }
|
||||
function otherObservableValidator() { return of ({'other': true}); }
|
||||
|
||||
describe('FormGroup', () => {
|
||||
describe('value', () => {
|
||||
|
@ -1116,7 +1116,7 @@ export function main() {
|
||||
|
||||
tick(100);
|
||||
expect(resultArr.length)
|
||||
.toEqual(2, `Expected original observable to be canceled on the next value change.`)
|
||||
.toEqual(2, `Expected original observable to be canceled on the next value change.`);
|
||||
}));
|
||||
|
||||
|
||||
|
@ -1,3 +1,11 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {Component, Directive, EventEmitter, Input, Output, Type} from '@angular/core';
|
||||
import {ComponentFixture, TestBed, async, fakeAsync, tick} from '@angular/core/testing';
|
||||
import {AbstractControl, ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, NgForm, ReactiveFormsModule, Validators} from '@angular/forms';
|
||||
|
Reference in New Issue
Block a user