From d9e0fbf894d8c9b603e6ef8775fb23f38afa5c2c Mon Sep 17 00:00:00 2001 From: Shingo Yamazaki Date: Tue, 19 Mar 2019 20:49:32 +0900 Subject: [PATCH] #290 ESLint: Fix `react/button-has-type` error --- .eslintrc.js | 2 +- src/scripts/Button.js | 1 + src/scripts/DropdownButton.js | 4 ++-- test/storyshots/__snapshots__/storyshots.test.js.snap | 7 +++++++ 4 files changed, 11 insertions(+), 3 deletions(-) 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