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.

97 lines
2.0 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-no-bind: error
  62. react/jsx-wrap-multilines: error
  63. react/no-multi-comp: off
  64. react/prop-types: error
  65. react/self-closing-comp: error
  66. jsx-a11y/accessible-emoji: warn
  67. jsx-a11y/anchor-has-content: warn
  68. jsx-a11y/aria-activedescendant-has-tabindex: warn
  69. jsx-a11y/aria-props: warn
  70. jsx-a11y/aria-proptypes: warn
  71. jsx-a11y/aria-role: warn
  72. jsx-a11y/aria-unsupported-elements: warn
  73. jsx-a11y/heading-has-content: warn
  74. jsx-a11y/href-no-hash: warn
  75. jsx-a11y/html-has-lang: warn
  76. jsx-a11y/iframe-has-title: warn
  77. jsx-a11y/img-has-alt: warn
  78. jsx-a11y/img-redundant-alt: warn
  79. jsx-a11y/label-has-for: warn
  80. jsx-a11y/mouse-events-have-key-events: warn
  81. jsx-a11y/no-access-key: warn
  82. jsx-a11y/no-distracting-elements: warn
  83. jsx-a11y/no-onchange: warn
  84. jsx-a11y/no-redundant-roles: warn
  85. jsx-a11y/onclick-has-focus: warn
  86. jsx-a11y/onclick-has-role: warn
  87. jsx-a11y/role-has-required-aria-props: warn
  88. jsx-a11y/role-supports-aria-props: warn
  89. jsx-a11y/scope: warn
  90. jsx-a11y/tabindex-no-positive: warn