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

80 lines
1.7 KiB

  1. ---
  2. env:
  3. browser: true
  4. node: false
  5. es6: true
  6. parser: babel-eslint
  7. plugins:
  8. - react
  9. - jsx-a11y
  10. parserOptions:
  11. sourceType: module
  12. ecmaFeatures:
  13. arrowFunctions: true
  14. jsx: true
  15. destructuring: true
  16. modules: true
  17. spread: true
  18. rules:
  19. no-cond-assign: error
  20. no-console: warn
  21. no-irregular-whitespace: error
  22. no-unreachable: error
  23. valid-typeof: error
  24. consistent-return: error
  25. dot-notation: error
  26. eqeqeq: error
  27. no-fallthrough: error
  28. no-unused-expressions: error
  29. strict: off
  30. no-catch-shadow: error
  31. indent:
  32. - warn
  33. - 2
  34. brace-style: warn
  35. comma-spacing:
  36. - warn
  37. - before: false
  38. after: true
  39. comma-style:
  40. - warn
  41. - last
  42. no-mixed-spaces-and-tabs: warn
  43. no-nested-ternary: warn
  44. no-trailing-spaces: warn
  45. react/jsx-wrap-multilines: error
  46. react/self-closing-comp: error
  47. react/prop-types: error
  48. react/no-multi-comp: off
  49. jsx-a11y/accessible-emoji: warn
  50. jsx-a11y/anchor-has-content: warn
  51. jsx-a11y/aria-activedescendant-has-tabindex: warn
  52. jsx-a11y/aria-props: warn
  53. jsx-a11y/aria-proptypes: warn
  54. jsx-a11y/aria-role: warn
  55. jsx-a11y/aria-unsupported-elements: warn
  56. jsx-a11y/heading-has-content: warn
  57. jsx-a11y/href-no-hash: warn
  58. jsx-a11y/html-has-lang: warn
  59. jsx-a11y/iframe-has-title: warn
  60. jsx-a11y/img-has-alt: warn
  61. jsx-a11y/img-redundant-alt: warn
  62. jsx-a11y/label-has-for: warn
  63. jsx-a11y/mouse-events-have-key-events: warn
  64. jsx-a11y/no-access-key: warn
  65. jsx-a11y/no-distracting-elements: warn
  66. jsx-a11y/no-onchange: warn
  67. jsx-a11y/no-redundant-roles: warn
  68. jsx-a11y/onclick-has-focus: warn
  69. jsx-a11y/onclick-has-role: warn
  70. jsx-a11y/role-has-required-aria-props: warn
  71. jsx-a11y/role-supports-aria-props: warn
  72. jsx-a11y/scope: warn
  73. jsx-a11y/tabindex-no-positive: warn