소스 검색

Update linting rules

Danilo Bargen 8 년 전
부모
커밋
9d32d0fe71
3개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      src/directives/compose_area.ts
  2. 1 1
      src/filters.ts
  3. 2 1
      tslint.json

+ 1 - 1
src/directives/compose_area.ts

@@ -79,7 +79,7 @@ export default [
                 /**
                  * Stop propagation of click events and hold htmlElement of the emojipicker
                  */
-                let EmoijPickerContainer = (function(){
+                let EmoijPickerContainer = (function() {
                     let instance;
 
                     function click(e) {

+ 1 - 1
src/filters.ts

@@ -250,7 +250,7 @@ angular.module('3ema.filters', [])
 .filter('idsToNames', ['WebClientService', function (webClientService: threema.WebClientService) {
     return(ids: string[]) => {
         let names: string[] = [];
-        for (let id of ids){
+        for (let id of ids) {
             this.contactReceiver = webClientService.contacts.get(id);
             names.push(this.contactReceiver.displayName);
         }

+ 2 - 1
tslint.json

@@ -10,6 +10,7 @@
         "object-literal-sort-keys": false,
         "only-arrow-functions": false,
         "quotemark": [true, "single", "avoid-escape"],
-        "indent": [true, "spaces"]
+        "indent": [true, "spaces"],
+        "whitespace": [true, "check-branch", "check-decl", "check-operator", "check-module", "check-separator", "check-type", "check-typecast", "check-preblock"]
     }
 }