diff --git a/.eslintrc.js b/.eslintrc.js index e0727c8fa..b73493b3e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -43,7 +43,7 @@ module.exports = { 'react/destructuring-assignment': 0, 'react/no-find-dom-node': 1, 'react/no-array-index-key': 2, - 'react/button-has-type': 1, + 'react/button-has-type': 2, 'jsx-a11y/click-events-have-key-events': 1, 'jsx-a11y/no-noninteractive-tabindex': 1, 'jsx-a11y/role-has-required-aria-props': 1, diff --git a/src/scripts/Button.js b/src/scripts/Button.js index 1eb48a34b..9ae39b842 100644 --- a/src/scripts/Button.js +++ b/src/scripts/Button.js @@ -70,6 +70,7 @@ export default class Button extends Component { delete props.items; return ( + // eslint-disable-next-line react/button-has-type