build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import { AbstractControl, ValidatorFn } from '@angular/forms';
|
||||
|
||||
export function rangeValidator(min: number, max: number): ValidatorFn {
|
||||
|
||||
return (control: AbstractControl): { [key: string]: boolean } | null => {
|
||||
if (control.value !== undefined && (isNaN(control.value) || control.value < min || control.value > max)) {
|
||||
return { 'range': true };
|
||||
return { range: true };
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user