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.

112 lines
2.3 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: warn
  42. no-fallthrough: error
  43. no-irregular-whitespace: error
  44. no-mixed-spaces-and-tabs: warn
  45. no-nested-ternary: warn
  46. no-trailing-spaces: warn
  47. no-unreachable: error
  48. no-unused-expressions: error
  49. object-curly-spacing:
  50. - error
  51. - always
  52. padded-blocks:
  53. - error
  54. - classes: always
  55. quotes:
  56. - error
  57. - single
  58. semi: error
  59. strict: off
  60. valid-typeof: error
  61. react/jsx-boolean-value: error
  62. react/jsx-closing-bracket-location:
  63. - error
  64. - line-aligned
  65. react/jsx-curly-spacing: error
  66. react/jsx-equals-spacing: error
  67. react/jsx-first-prop-new-line:
  68. - error
  69. - multiline-multiprop
  70. react/jsx-indent:
  71. - error
  72. - 2
  73. react/jsx-no-bind: error
  74. react/jsx-no-duplicate-props: error
  75. react/jsx-tag-spacing: error
  76. react/jsx-wrap-multilines: error
  77. react/no-multi-comp: off
  78. react/no-string-refs: error
  79. react/prop-types: error
  80. react/self-closing-comp: error
  81. jsx-a11y/accessible-emoji: warn
  82. jsx-a11y/anchor-has-content: warn
  83. jsx-a11y/aria-activedescendant-has-tabindex: warn
  84. jsx-a11y/aria-props: warn
  85. jsx-a11y/aria-proptypes: warn
  86. jsx-a11y/aria-role: warn
  87. jsx-a11y/aria-unsupported-elements: warn
  88. jsx-a11y/heading-has-content: warn
  89. jsx-a11y/href-no-hash: warn
  90. jsx-a11y/html-has-lang: warn
  91. jsx-a11y/iframe-has-title: warn
  92. jsx-a11y/img-has-alt: warn
  93. jsx-a11y/img-redundant-alt: warn
  94. jsx-a11y/label-has-for: warn
  95. jsx-a11y/mouse-events-have-key-events: warn
  96. jsx-a11y/no-access-key: warn
  97. jsx-a11y/no-distracting-elements: warn
  98. jsx-a11y/no-onchange: warn
  99. jsx-a11y/no-redundant-roles: warn
  100. jsx-a11y/onclick-has-focus: warn
  101. jsx-a11y/onclick-has-role: warn
  102. jsx-a11y/role-has-required-aria-props: warn
  103. jsx-a11y/role-supports-aria-props: warn
  104. jsx-a11y/scope: warn
  105. jsx-a11y/tabindex-no-positive: warn