.eslintrc.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {
  2. "extends": "eslint:recommended",
  3. "env": {
  4. "es6": true,
  5. "node": true,
  6. "browser": true
  7. },
  8. "parserOptions": {
  9. "ecmaVersion": 2017,
  10. "sourceType": "module",
  11. "ecmaFeatures": {
  12. "experimentalObjectRestSpread": true
  13. }
  14. },
  15. "rules": {
  16. "strict": 0,
  17. "no-undef": 0,
  18. "accessor-pairs": 2,
  19. "comma-dangle": [2, "always-multiline"],
  20. "consistent-return": 2,
  21. "dot-notation": 2,
  22. "eqeqeq": 2,
  23. "indent": [2, 2],
  24. "no-cond-assign": 2,
  25. "no-constant-condition": 2,
  26. "no-eval": 2,
  27. "no-inner-declarations": [0],
  28. "no-unneeded-ternary": 2,
  29. "radix": 2,
  30. "semi": [2, "always"],
  31. "camelcase": [2, {"properties": "never"}],
  32. "comma-spacing": 2,
  33. "comma-style": 2,
  34. "eol-last": 2,
  35. "linebreak-style": [2, "unix"],
  36. "new-parens": 2,
  37. "no-lonely-if": 2,
  38. "no-multiple-empty-lines": 2,
  39. "no-nested-ternary": 2,
  40. "no-spaced-func": 2,
  41. "no-trailing-spaces": 2,
  42. "operator-linebreak": 2,
  43. "quotes": [2, "single"],
  44. "semi-spacing": 2,
  45. "space-unary-ops": 2,
  46. "arrow-parens": 2,
  47. "arrow-spacing": 2,
  48. "no-class-assign": 2,
  49. "no-dupe-class-members": 2,
  50. "no-var": 2,
  51. "object-shorthand": 2,
  52. "prefer-const": 2,
  53. "prefer-spread": 2,
  54. "prefer-template": 2,
  55. "no-unused-vars" : "warn"
  56. },
  57. "globals": {
  58. "Meteor": false,
  59. "Session": false,
  60. "HTML": false,
  61. "check": false,
  62. "Tracker": false,
  63. "Blaze": false,
  64. "Accounts": false,
  65. "Match": false,
  66. "Mongo": false,
  67. "Random": false,
  68. "ReactiveVar": false,
  69. "Email": false,
  70. "Template": false,
  71. "$": false,
  72. "_": false,
  73. "autosize": false,
  74. "Avatar": true,
  75. "Avatars": true,
  76. "BlazeComponent": false,
  77. "BlazeLayout": false,
  78. "CollectionHooks": false,
  79. "DocHead": false,
  80. "ESSearchResults": false,
  81. "FastRender": false,
  82. "FlowRouter": false,
  83. "FS": false,
  84. "getSlug": false,
  85. "Migrations": false,
  86. "moment": false,
  87. "Mousetrap": false,
  88. "Picker": false,
  89. "Presence": true,
  90. "presences": true,
  91. "Ps": true,
  92. "ReactiveTabs": false,
  93. "Restivus": false,
  94. "SimpleSchema": false,
  95. "SubsManager": false,
  96. "T9n": false,
  97. "TAPi18n": false,
  98. "AccountsTemplates": true,
  99. "Activities": true,
  100. "Attachments": true,
  101. "Boards": true,
  102. "CardComments": true,
  103. "DatePicker" : true,
  104. "Cards": true,
  105. "CustomFields": true,
  106. "Lists": true,
  107. "UnsavedEditCollection": true,
  108. "Users": true,
  109. "CSSEvents": true,
  110. "EscapeActions": true,
  111. "Filter": true,
  112. "Mixins": true,
  113. "Modal": true,
  114. "MultiSelection": true,
  115. "Popup": true,
  116. "Sidebar": true,
  117. "Utils": true,
  118. "InlinedForm": true,
  119. "UnsavedEdits": true,
  120. "Notifications": true,
  121. "allowIsBoardAdmin": true,
  122. "allowIsBoardMember": true,
  123. "allowIsBoardMemberByCard": true,
  124. "allowIsBoardMemberCommentOnly": true,
  125. "allowIsBoardMemberNoComments": true,
  126. "Emoji": true,
  127. "Checklists": true,
  128. "Settings": true,
  129. "InvitationCodes": true,
  130. "JsonRoutes": true,
  131. "Authentication": true,
  132. "Integrations": true,
  133. "HTTP": true,
  134. "AccountSettings": true,
  135. "Announcements": true,
  136. "Swimlanes": true,
  137. "ChecklistItems": true,
  138. "Subtasks": true,
  139. "Npm": true
  140. }
  141. }