From 17b90a9b740ce1ee62ec5534ff9ae95d276bccfa Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 4 Nov 2021 15:22:40 -0500 Subject: [PATCH] eslint: error on wrong indentation --- .eslintrc.js | 2 +- app/soapbox/features/ui/components/profile_dropdown.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 217ee4f1f..aac5995fa 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -67,7 +67,7 @@ module.exports = { 'consistent-return': 'error', 'dot-notation': 'error', eqeqeq: 'error', - indent: ['warn', 2], + indent: ['error', 2], 'jsx-quotes': ['error', 'prefer-single'], 'no-catch-shadow': 'error', 'no-cond-assign': 'error', diff --git a/app/soapbox/features/ui/components/profile_dropdown.js b/app/soapbox/features/ui/components/profile_dropdown.js index 7ec2c4ea3..b5a29856a 100644 --- a/app/soapbox/features/ui/components/profile_dropdown.js +++ b/app/soapbox/features/ui/components/profile_dropdown.js @@ -117,13 +117,14 @@ class ProfileDropdown extends React.PureComponent { text: intl.formatMessage(messages.add), to: '/auth/sign_in', icon: require('@tabler/icons/icons/plus.svg'), - }); + }); + menu.push({ text: intl.formatMessage(messages.logout, { acct: account.get('acct') }), to: '/auth/sign_out', action: this.handleLogOut, icon: require('@tabler/icons/icons/logout.svg'), - }); + }); return (