闭社主体 forked from https://github.com/tootsuite/mastodon
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.

128 lines
2.6 KiB

  1. ---
  2. root: true
  3. env:
  4. browser: true
  5. node: true
  6. es6: true
  7. jest: true
  8. parser: babel-eslint
  9. plugins:
  10. - react
  11. - jsx-a11y
  12. parserOptions:
  13. sourceType: module
  14. ecmaFeatures:
  15. arrowFunctions: true
  16. jsx: true
  17. destructuring: true
  18. modules: true
  19. spread: true
  20. rules:
  21. brace-style: warn
  22. comma-dangle:
  23. - error
  24. - always-multiline
  25. comma-spacing:
  26. - warn
  27. - before: false
  28. after: true
  29. comma-style:
  30. - warn
  31. - last
  32. consistent-return: error
  33. dot-notation: error
  34. eqeqeq: error
  35. indent:
  36. - warn
  37. - 2
  38. jsx-quotes:
  39. - error
  40. - prefer-single
  41. no-catch-shadow: error
  42. no-cond-assign: error
  43. no-console:
  44. - warn
  45. - allow:
  46. - error
  47. - warn
  48. no-fallthrough: error
  49. no-irregular-whitespace: error
  50. no-mixed-spaces-and-tabs: warn
  51. no-nested-ternary: warn
  52. no-trailing-spaces: warn
  53. no-undef: error
  54. no-unreachable: error
  55. no-unused-expressions: error
  56. no-unused-vars:
  57. - error
  58. - vars: all
  59. args: after-used
  60. ignoreRestSiblings: true
  61. object-curly-spacing:
  62. - error
  63. - always
  64. padded-blocks:
  65. - error
  66. - classes: always
  67. quotes:
  68. - error
  69. - single
  70. semi: error
  71. strict: off
  72. valid-typeof: error
  73. react/jsx-boolean-value: error
  74. react/jsx-closing-bracket-location:
  75. - error
  76. - line-aligned
  77. react/jsx-curly-spacing: error
  78. react/jsx-equals-spacing: error
  79. react/jsx-first-prop-new-line:
  80. - error
  81. - multiline-multiprop
  82. react/jsx-indent:
  83. - error
  84. - 2
  85. react/jsx-no-bind: error
  86. react/jsx-no-duplicate-props: error
  87. react/jsx-no-undef: error
  88. react/jsx-tag-spacing: error
  89. react/jsx-uses-react: error
  90. react/jsx-uses-vars: error
  91. react/jsx-wrap-multilines: error
  92. react/no-multi-comp: off
  93. react/no-string-refs: error
  94. react/prop-types: error
  95. react/self-closing-comp: error
  96. jsx-a11y/accessible-emoji: warn
  97. jsx-a11y/anchor-has-content: warn
  98. jsx-a11y/aria-activedescendant-has-tabindex: warn
  99. jsx-a11y/aria-props: warn
  100. jsx-a11y/aria-proptypes: warn
  101. jsx-a11y/aria-role: warn
  102. jsx-a11y/aria-unsupported-elements: warn
  103. jsx-a11y/heading-has-content: warn
  104. jsx-a11y/href-no-hash: warn
  105. jsx-a11y/html-has-lang: warn
  106. jsx-a11y/iframe-has-title: warn
  107. jsx-a11y/img-has-alt: warn
  108. jsx-a11y/img-redundant-alt: warn
  109. jsx-a11y/label-has-for: off
  110. jsx-a11y/mouse-events-have-key-events: warn
  111. jsx-a11y/no-access-key: warn
  112. jsx-a11y/no-distracting-elements: warn
  113. jsx-a11y/no-onchange: warn
  114. jsx-a11y/no-redundant-roles: warn
  115. jsx-a11y/onclick-has-focus: warn
  116. jsx-a11y/onclick-has-role: warn
  117. jsx-a11y/role-has-required-aria-props: warn
  118. jsx-a11y/role-supports-aria-props: off
  119. jsx-a11y/scope: warn
  120. jsx-a11y/tabindex-no-positive: warn