Skip to content

Commit

Permalink
chore: Disable no-use-before-define for functions
Browse files Browse the repository at this point in the history
  • Loading branch information
anicholls committed Feb 26, 2020
1 parent f7dcc15 commit 1b78e9d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion eslintrc.js
Expand Up @@ -71,7 +71,7 @@ module.exports = {
'no-param-reassign': 'error',
'no-undef-init': 'error',
'no-unused-labels': 'error',
'no-use-before-define': 'warn', // Decide on this
'no-use-before-define': ['warn', {functions: false, classes: true}],
'no-var': 'error',
'prefer-const': 'error',
'quote-props': 'off',
Expand Down
1 change: 0 additions & 1 deletion modules/_labs/button/react/lib/Button.tsx
Expand Up @@ -34,7 +34,6 @@ const Button = (props: ButtonProps) => {
const {variant, size, buttonRef, dataLabel, icon, children, ...elemProps} = props;

return (
// eslint-disable-next-line no-use-before-define
<ButtonContainer colors={getButtonColors(variant)} size={size} ref={buttonRef} {...elemProps}>
{icon && <ButtonLabelIcon size={size} icon={icon} />}
<ButtonLabel>{children}</ButtonLabel>
Expand Down
1 change: 0 additions & 1 deletion modules/_labs/button/react/lib/IconButton.tsx
Expand Up @@ -76,7 +76,6 @@ const IconButton = (props: IconButtonProps) => {

return (
<ButtonContainer
// eslint-disable-next-line no-use-before-define
colors={getIconButtonColors(variant, toggled)}
size={size}
ref={buttonRef}
Expand Down

0 comments on commit 1b78e9d

Please sign in to comment.