闭社主体 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.

126 lines
2.6 KiB

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