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.

115 lines
2.4 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. brace-style: warn
  20. comma-dangle:
  21. - error
  22. - always-multiline
  23. comma-spacing:
  24. - warn
  25. - before: false
  26. after: true
  27. comma-style:
  28. - warn
  29. - last
  30. consistent-return: error
  31. dot-notation: error
  32. eqeqeq: error
  33. indent:
  34. - warn
  35. - 2
  36. jsx-quotes:
  37. - error
  38. - prefer-single
  39. no-catch-shadow: error
  40. no-cond-assign: error
  41. no-console:
  42. - warn
  43. - allow:
  44. - error
  45. no-fallthrough: error
  46. no-irregular-whitespace: error
  47. no-mixed-spaces-and-tabs: warn
  48. no-nested-ternary: warn
  49. no-trailing-spaces: warn
  50. no-unreachable: error
  51. no-unused-expressions: error
  52. object-curly-spacing:
  53. - error
  54. - always
  55. padded-blocks:
  56. - error
  57. - classes: always
  58. quotes:
  59. - error
  60. - single
  61. semi: error
  62. strict: off
  63. valid-typeof: error
  64. react/jsx-boolean-value: error
  65. react/jsx-closing-bracket-location:
  66. - error
  67. - line-aligned
  68. react/jsx-curly-spacing: error
  69. react/jsx-equals-spacing: error
  70. react/jsx-first-prop-new-line:
  71. - error
  72. - multiline-multiprop
  73. react/jsx-indent:
  74. - error
  75. - 2
  76. react/jsx-no-bind: error
  77. react/jsx-no-duplicate-props: error
  78. react/jsx-tag-spacing: error
  79. react/jsx-wrap-multilines: error
  80. react/no-multi-comp: off
  81. react/no-string-refs: error
  82. react/prop-types: error
  83. react/self-closing-comp: error
  84. jsx-a11y/accessible-emoji: warn
  85. jsx-a11y/anchor-has-content: warn
  86. jsx-a11y/aria-activedescendant-has-tabindex: warn
  87. jsx-a11y/aria-props: warn
  88. jsx-a11y/aria-proptypes: warn
  89. jsx-a11y/aria-role: warn
  90. jsx-a11y/aria-unsupported-elements: warn
  91. jsx-a11y/heading-has-content: warn
  92. jsx-a11y/href-no-hash: warn
  93. jsx-a11y/html-has-lang: warn
  94. jsx-a11y/iframe-has-title: warn
  95. jsx-a11y/img-has-alt: warn
  96. jsx-a11y/img-redundant-alt: warn
  97. jsx-a11y/label-has-for: warn
  98. jsx-a11y/mouse-events-have-key-events: warn
  99. jsx-a11y/no-access-key: warn
  100. jsx-a11y/no-distracting-elements: warn
  101. jsx-a11y/no-onchange: warn
  102. jsx-a11y/no-redundant-roles: warn
  103. jsx-a11y/onclick-has-focus: warn
  104. jsx-a11y/onclick-has-role: warn
  105. jsx-a11y/role-has-required-aria-props: warn
  106. jsx-a11y/role-supports-aria-props: warn
  107. jsx-a11y/scope: warn
  108. jsx-a11y/tabindex-no-positive: warn