.eslintrc.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. semi: error
  46. padded-blocks:
  47. - error
  48. - classes: always
  49. comma-dangle:
  50. - error
  51. - always-multiline
  52. object-curly-spacing:
  53. - error
  54. - always
  55. react/jsx-wrap-multilines: error
  56. react/jsx-no-bind: error
  57. react/self-closing-comp: error
  58. react/prop-types: error
  59. react/no-multi-comp: off
  60. jsx-a11y/accessible-emoji: warn
  61. jsx-a11y/anchor-has-content: warn
  62. jsx-a11y/aria-activedescendant-has-tabindex: warn
  63. jsx-a11y/aria-props: warn
  64. jsx-a11y/aria-proptypes: warn
  65. jsx-a11y/aria-role: warn
  66. jsx-a11y/aria-unsupported-elements: warn
  67. jsx-a11y/heading-has-content: warn
  68. jsx-a11y/href-no-hash: warn
  69. jsx-a11y/html-has-lang: warn
  70. jsx-a11y/iframe-has-title: warn
  71. jsx-a11y/img-has-alt: warn
  72. jsx-a11y/img-redundant-alt: warn
  73. jsx-a11y/label-has-for: warn
  74. jsx-a11y/mouse-events-have-key-events: warn
  75. jsx-a11y/no-access-key: warn
  76. jsx-a11y/no-distracting-elements: warn
  77. jsx-a11y/no-onchange: warn
  78. jsx-a11y/no-redundant-roles: warn
  79. jsx-a11y/onclick-has-focus: warn
  80. jsx-a11y/onclick-has-role: warn
  81. jsx-a11y/role-has-required-aria-props: warn
  82. jsx-a11y/role-supports-aria-props: warn
  83. jsx-a11y/scope: warn
  84. jsx-a11y/tabindex-no-positive: warn