The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

171 lines
3.3 KiB

  1. ---
  2. root: true
  3. env:
  4. browser: true
  5. node: true
  6. es6: true
  7. jest: true
  8. globals:
  9. ATTACHMENT_HOST: false
  10. parser: babel-eslint
  11. plugins:
  12. - react
  13. - jsx-a11y
  14. - import
  15. - promise
  16. parserOptions:
  17. sourceType: module
  18. ecmaFeatures:
  19. experimentalObjectRestSpread: true
  20. jsx: true
  21. ecmaVersion: 2018
  22. settings:
  23. import/extensions:
  24. - .js
  25. import/ignore:
  26. - node_modules
  27. - \\.(css|scss|json)$
  28. rules:
  29. brace-style: warn
  30. comma-dangle:
  31. - error
  32. - always-multiline
  33. comma-spacing:
  34. - warn
  35. - before: false
  36. after: true
  37. comma-style:
  38. - warn
  39. - last
  40. consistent-return: error
  41. dot-notation: error
  42. eqeqeq: error
  43. indent:
  44. - warn
  45. - 2
  46. jsx-quotes:
  47. - error
  48. - prefer-single
  49. no-catch-shadow: error
  50. no-cond-assign: error
  51. no-console:
  52. - warn
  53. - allow:
  54. - error
  55. - warn
  56. no-fallthrough: error
  57. no-irregular-whitespace: error
  58. no-mixed-spaces-and-tabs: warn
  59. no-nested-ternary: warn
  60. no-trailing-spaces: warn
  61. no-undef: error
  62. no-unreachable: error
  63. no-unused-expressions: error
  64. no-unused-vars:
  65. - error
  66. - vars: all
  67. args: after-used
  68. ignoreRestSiblings: true
  69. object-curly-spacing:
  70. - error
  71. - always
  72. padded-blocks:
  73. - error
  74. - classes: always
  75. quotes:
  76. - error
  77. - single
  78. semi: error
  79. strict: off
  80. valid-typeof: error
  81. react/jsx-boolean-value: error
  82. react/jsx-closing-bracket-location:
  83. - error
  84. - line-aligned
  85. react/jsx-curly-spacing: error
  86. react/jsx-equals-spacing: error
  87. react/jsx-first-prop-new-line:
  88. - error
  89. - multiline-multiprop
  90. react/jsx-indent:
  91. - error
  92. - 2
  93. react/jsx-no-bind: error
  94. react/jsx-no-duplicate-props: error
  95. react/jsx-no-undef: error
  96. react/jsx-tag-spacing: error
  97. react/jsx-uses-react: error
  98. react/jsx-uses-vars: error
  99. react/jsx-wrap-multilines: error
  100. react/no-multi-comp: off
  101. react/no-string-refs: error
  102. react/prop-types: error
  103. react/self-closing-comp: error
  104. jsx-a11y/accessible-emoji: warn
  105. jsx-a11y/alt-text: warn
  106. jsx-a11y/anchor-has-content: warn
  107. jsx-a11y/anchor-is-valid:
  108. - warn
  109. - components:
  110. - Link
  111. - NavLink
  112. specialLink:
  113. - to
  114. aspect:
  115. - noHref
  116. - invalidHref
  117. - preferButton
  118. jsx-a11y/aria-activedescendant-has-tabindex: warn
  119. jsx-a11y/aria-props: warn
  120. jsx-a11y/aria-proptypes: warn
  121. jsx-a11y/aria-role: warn
  122. jsx-a11y/aria-unsupported-elements: warn
  123. jsx-a11y/heading-has-content: warn
  124. jsx-a11y/html-has-lang: warn
  125. jsx-a11y/iframe-has-title: warn
  126. jsx-a11y/img-redundant-alt: warn
  127. jsx-a11y/interactive-supports-focus: warn
  128. jsx-a11y/label-has-for: off
  129. jsx-a11y/mouse-events-have-key-events: warn
  130. jsx-a11y/no-access-key: warn
  131. jsx-a11y/no-distracting-elements: warn
  132. jsx-a11y/no-noninteractive-element-interactions:
  133. - warn
  134. - handlers:
  135. - onClick
  136. jsx-a11y/no-onchange: warn
  137. jsx-a11y/no-redundant-roles: warn
  138. jsx-a11y/no-static-element-interactions:
  139. - warn
  140. - handlers:
  141. - onClick
  142. jsx-a11y/role-has-required-aria-props: warn
  143. jsx-a11y/role-supports-aria-props: off
  144. jsx-a11y/scope: warn
  145. jsx-a11y/tabindex-no-positive: warn
  146. import/extensions:
  147. - error
  148. - always
  149. - js: never
  150. import/newline-after-import: error
  151. import/no-extraneous-dependencies:
  152. - error
  153. - devDependencies:
  154. - "config/webpack/**"
  155. - "app/javascript/mastodon/test_setup.js"
  156. - "app/javascript/**/__tests__/**"
  157. import/no-unresolved: error
  158. import/no-webpack-loader-syntax: error
  159. promise/catch-or-return: error