style(lint): re-format modules/@angular
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import {Type, DirectiveMetadata} from '@angular/core';
|
||||
import {DirectiveResolver} from '@angular/compiler';
|
||||
import {DirectiveMetadata, Type} from '@angular/core';
|
||||
|
||||
var COMPONENT_SELECTOR = /^[\w|-]*$/;
|
||||
var SKEWER_CASE = /-(\w)/g;
|
||||
@ -29,7 +29,8 @@ export function getComponentInfo(type: Type): ComponentInfo {
|
||||
if (!selector.match(COMPONENT_SELECTOR)) {
|
||||
throw new Error('Only selectors matching element names are supported, got: ' + selector);
|
||||
}
|
||||
var selector = selector.replace(SKEWER_CASE, (all: any /** TODO #9100 */, letter: string) => letter.toUpperCase());
|
||||
var selector = selector.replace(
|
||||
SKEWER_CASE, (all: any /** TODO #9100 */, letter: string) => letter.toUpperCase());
|
||||
return {
|
||||
type: type,
|
||||
selector: selector,
|
||||
|
Reference in New Issue
Block a user