Просмотр исходного кода

Enable more ESLint-plugin-Meteor rules

Dominik Ferber 9 лет назад
Родитель
Сommit
c9130324f6
1 измененных файлов с 7 добавлено и 3 удалено
  1. 7 3
      .eslintrc

+ 7 - 3
.eslintrc

@@ -51,17 +51,21 @@ rules:
   prefer-template: 2
 
   # eslint-plugin-meteor
+  ## Meteor API
   meteor/globals: 2
-  meteor/no-zero-timeout: 2
-  meteor/no-session: 0
-  meteor/pubsub: 2
   meteor/core: 2
+  meteor/pubsub: 2
   meteor/methods: 2
   meteor/check: 2
   meteor/connections: 2
   meteor/collections: 2
   meteor/session: [2, 'no-equal']
 
+  ## Best practices
+  meteor/no-session: 0
+  meteor/no-zero-timeout: 2
+  meteor/no-blaze-lifecycle-assignment: 2
+
 settings:
   meteor: