Upgrade ESlint to v8 (#23305)
This commit is contained in:
		@@ -109,7 +109,7 @@ class Header extends ImmutablePureComponent {
 | 
			
		||||
 | 
			
		||||
  openEditProfile = () => {
 | 
			
		||||
    window.open('/settings/profile', '_blank');
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  isStatusesPageActive = (match, location) => {
 | 
			
		||||
    if (!match) {
 | 
			
		||||
@@ -117,7 +117,7 @@ class Header extends ImmutablePureComponent {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return !location.pathname.match(/\/(followers|following)\/?$/);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleMouseEnter = ({ currentTarget }) => {
 | 
			
		||||
    if (autoPlayGif) {
 | 
			
		||||
@@ -130,7 +130,7 @@ class Header extends ImmutablePureComponent {
 | 
			
		||||
      let emoji = emojis[i];
 | 
			
		||||
      emoji.src = emoji.getAttribute('data-original');
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleMouseLeave = ({ currentTarget }) => {
 | 
			
		||||
    if (autoPlayGif) {
 | 
			
		||||
@@ -143,14 +143,14 @@ class Header extends ImmutablePureComponent {
 | 
			
		||||
      let emoji = emojis[i];
 | 
			
		||||
      emoji.src = emoji.getAttribute('data-static');
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleAvatarClick = e => {
 | 
			
		||||
    if (e.button === 0 && !(e.ctrlKey || e.metaKey)) {
 | 
			
		||||
      e.preventDefault();
 | 
			
		||||
      this.props.onOpenAvatar();
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleShare = () => {
 | 
			
		||||
    const { account } = this.props;
 | 
			
		||||
@@ -161,7 +161,7 @@ class Header extends ImmutablePureComponent {
 | 
			
		||||
    }).catch((e) => {
 | 
			
		||||
      if (e.name !== 'AbortError') console.error(e);
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  render () {
 | 
			
		||||
    const { account, hidden, intl, domain } = this.props;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user