Skip to content

Commit

Permalink
fix: stype and align to 2.1 ts enums
Browse files Browse the repository at this point in the history
  • Loading branch information
mgechev committed Nov 13, 2016
1 parent e385eb9 commit d49cc26
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 260 deletions.
4 changes: 2 additions & 2 deletions src/selectorNameBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ export abstract class SelectorRule extends Lint.Rules.AbstractRule {

public validateName(selector:any):boolean {
if(this.isMultiSelectors) {
return selector.some((a)=>this.nameValidator(a));
return selector.some((a) => this.nameValidator(a));
} else {
return this.nameValidator(selector);
}
}

public validatePrefix(selector:any):boolean {
if(this.isMultiSelectors) {
return selector.some((a)=>this.prefixValidator(a));
return selector.some((a) => this.prefixValidator(a));
} else {
return this.prefixValidator(selector);
}
Expand Down
5 changes: 3 additions & 2 deletions src/util/selectorValidator.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
export const SelectorValidator = {

attribute(selector: string): boolean {
return selector.length!==0;
return selector.length !== 0;
},

element(selector: string): boolean {
return selector!==null;
return selector !== null;
},

kebabCase(selector: string): boolean {
Expand Down
Loading

0 comments on commit d49cc26

Please sign in to comment.