.eslintrc.json 3.7 KB

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