.eslintrc.json 3.7 KB

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