From 666dc75c15605fae8cf2d0fb03fd8d33837f16a5 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Mon, 28 Mar 2016 14:39:29 -0700 Subject: [PATCH] chore(lint): disallow duplicate imports from a module Closes #7859 --- modules/@angular/common/src/forms/directives/validators.ts | 3 +-- tslint.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/@angular/common/src/forms/directives/validators.ts b/modules/@angular/common/src/forms/directives/validators.ts index ded3f1b961..abbe81d77a 100644 --- a/modules/@angular/common/src/forms/directives/validators.ts +++ b/modules/@angular/common/src/forms/directives/validators.ts @@ -2,7 +2,6 @@ import {forwardRef, Attribute, Directive} from '@angular/core'; import {NumberWrapper} from '../../facade/lang'; import {Validators, NG_VALIDATORS} from '../validators'; import {AbstractControl} from '../model'; -import * as modelModule from '../model'; @@ -23,7 +22,7 @@ import * as modelModule from '../model'; * } * ``` */ -export interface Validator { validate(c: modelModule.AbstractControl): {[key: string]: any}; } +export interface Validator { validate(c: AbstractControl): {[key: string]: any}; } const REQUIRED = /*@ts2dart_const*/ Validators.required; diff --git a/tslint.json b/tslint.json index b1c5549a56..798d48fc41 100644 --- a/tslint.json +++ b/tslint.json @@ -3,7 +3,7 @@ "requireInternalWithUnderscore": true, "requireParameterType": true, "requireReturnType": true, - "duplicateModuleImport": false, + "duplicateModuleImport": true, "semicolon": true, "variable-name": false }