enable full validation as in light2 ui and fe2
This commit is contained in:
Родитель
94f8344e98
Коммит
4c3dc5afa1
|
@ -44,7 +44,7 @@ export class ArcDirective implements OnInit, OnDestroy, IArcDirective {
|
|||
public arcFocus = new EventEmitter<Element>();
|
||||
|
||||
@Input('arc-default-focus')
|
||||
public set arcDefaultFocus(ignored: any) {
|
||||
public set arcDefaultFocus(_ignored: any) {
|
||||
this.arcSetFocus = this.arcSetFocus.startWith(undefined);
|
||||
}
|
||||
|
||||
|
|
|
@ -193,13 +193,14 @@ function calculateScore(
|
|||
* Returns the common ancestor in the DOM of two nodes. From:
|
||||
* http://stackoverflow.com/a/7648545
|
||||
*/
|
||||
function getCommonAncestor(a: Element, b: Element) {
|
||||
function getCommonAncestor(a: Element, b: Element): Element {
|
||||
const mask = 0x10;
|
||||
while (a = a.parentElement) {
|
||||
if ((a.compareDocumentPosition(b) & mask) === mask) { // tslint:disable-line
|
||||
return a;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
"emitDecoratorMetadata": true,
|
||||
"moduleResolution": "node",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"strictNullChecks": false,
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
"static-method-regex": "^[a-z][\\w\\d]+$",
|
||||
"function-regex": "^[a-z][\\w\\d]+$"
|
||||
}],
|
||||
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"],
|
||||
|
||||
// Angular
|
||||
"directive-selector-name": [
|
||||
|
|
Загрузка…
Ссылка в новой задаче