瀏覽代碼

Enable more ESLint-plugin-Meteor rules

Dominik Ferber 9 年之前
父節點
當前提交
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: