.eslintrc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. ecmaFeatures:
  2. experimentalObjectRestSpread: true
  3. plugins:
  4. - meteor
  5. parser: babel-eslint
  6. rules:
  7. strict: 0
  8. no-undef: 2
  9. accessor-pairs: 2
  10. comma-dangle: [2, 'always-multiline']
  11. consistent-return: 2
  12. dot-notation: 2
  13. eqeqeq: 2
  14. indent: [2, 2]
  15. no-cond-assign: 2
  16. no-constant-condition: 2
  17. no-eval: 2
  18. no-inner-declarations: [0]
  19. no-unneeded-ternary: 2
  20. radix: 2
  21. semi: [2, always]
  22. # Stylistic Issues
  23. camelcase: 2
  24. comma-spacing: 2
  25. comma-style: 2
  26. linebreak-style: [2, unix]
  27. new-parens: 2
  28. no-lonely-if: 2
  29. no-multiple-empty-lines: 2
  30. no-nested-ternary: 2
  31. no-spaced-func: 2
  32. operator-linebreak: 2
  33. quotes: [2, single]
  34. semi-spacing: 2
  35. space-unary-ops: 2
  36. spaced-comment: [2, always, markers: ['/']]
  37. # ECMAScript 6
  38. arrow-parens: 2
  39. arrow-spacing: 2
  40. no-class-assign: 2
  41. no-dupe-class-members: 2
  42. no-var: 2
  43. object-shorthand: 2
  44. prefer-const: 2
  45. prefer-spread: 2
  46. prefer-template: 2
  47. # eslint-plugin-meteor
  48. ## Meteor API
  49. meteor/globals: 2
  50. meteor/core: 2
  51. meteor/pubsub: 2
  52. meteor/methods: 2
  53. meteor/check: 2
  54. meteor/connections: 2
  55. meteor/collections: 2
  56. meteor/session: [2, 'no-equal']
  57. ## Best practices
  58. meteor/no-session: 0
  59. meteor/no-zero-timeout: 2
  60. meteor/no-blaze-lifecycle-assignment: 2
  61. settings:
  62. meteor:
  63. # Our collections
  64. collections:
  65. - AccountsTemplates
  66. - Activities
  67. - Attachments
  68. - Boards
  69. - CardComments
  70. - Cards
  71. - Lists
  72. - UnsavedEditCollection
  73. - Users
  74. globals:
  75. # Exported by packages we use
  76. autosize: false
  77. Avatar: true
  78. Avatars: true
  79. BlazeComponent: false
  80. BlazeLayout: false
  81. DocHead: false
  82. ESSearchResults: false
  83. FastRender: false
  84. FlowRouter: false
  85. FS: false
  86. getSlug: false
  87. Migrations: false
  88. moment: false
  89. Mousetrap: false
  90. Picker: false
  91. Presence: true
  92. presences: true
  93. Ps: true
  94. ReactiveTabs: false
  95. Restivus: false
  96. SimpleSchema: false
  97. SubsManager: false
  98. T9n: false
  99. TAPi18n: false
  100. # Our objects
  101. CSSEvents: true
  102. EscapeActions: true
  103. Filter: true
  104. Filter: true
  105. Mixins: true
  106. Modal: true
  107. MultiSelection: true
  108. Popup: true
  109. Sidebar: true
  110. Utils: true
  111. InlinedForm: true
  112. UnsavedEdits: true
  113. # XXX Temp, we should remove these
  114. allowIsBoardAdmin: true
  115. allowIsBoardMember: true
  116. Emoji: true
  117. env:
  118. es6: true
  119. node: true
  120. browser: true
  121. extends: 'eslint:recommended'