eslint: error on wrong indentation

merge-requests/857/head
Alex Gleason 3 years ago
parent 2cecefd749
commit 17b90a9b74
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -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',

@ -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 (
<div className='compose__action-bar' style={{ 'marginTop':'-6px' }}>

Loading…
Cancel
Save