Skip to content

Commit

Permalink
Disable rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Farejowicz committed Jul 11, 2018
1 parent da64e18 commit 97ebed4
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions packages/gestalt/src/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export default function Button(props: Props) {
accessibilityHaspopup,
accessibilityLabel,
color = 'gray',
disabled = false,
inline = false,
disabled,
inline,
name,
onClick,
size = 'md',
size,
text,
type = 'button',
type,
} = props;

const textColor = {
Expand All @@ -54,6 +54,7 @@ export default function Button(props: Props) {
[styles.block]: !inline,
});

/* eslint-disable react/button-has-type */
return (
<button
aria-expanded={accessibilityExpanded}
Expand All @@ -76,8 +77,17 @@ export default function Button(props: Props) {
</Text>
</button>
);
/* eslint-enable react/button-has-type */
}

Button.defaultProps = {
color: 'gray',
disabled: false,
inline: false,
size: 'md',
type: 'button',
};

Button.propTypes = {
accessibilityExpanded: PropTypes.bool,
accessibilityHaspopup: PropTypes.bool,
Expand Down

0 comments on commit 97ebed4

Please sign in to comment.