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.

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