Merge branch 'eslint-indent-enforce' into 'develop'

eslint: error on wrong indentation

See merge request soapbox-pub/soapbox-fe!857
This commit is contained in:
Alex Gleason 2021-11-04 20:29:17 +00:00
commit b648861309
2 changed files with 4 additions and 3 deletions

View file

@ -67,7 +67,7 @@ module.exports = {
'consistent-return': 'error', 'consistent-return': 'error',
'dot-notation': 'error', 'dot-notation': 'error',
eqeqeq: 'error', eqeqeq: 'error',
indent: ['warn', 2], indent: ['error', 2],
'jsx-quotes': ['error', 'prefer-single'], 'jsx-quotes': ['error', 'prefer-single'],
'no-catch-shadow': 'error', 'no-catch-shadow': 'error',
'no-cond-assign': 'error', 'no-cond-assign': 'error',

View file

@ -118,6 +118,7 @@ class ProfileDropdown extends React.PureComponent {
to: '/auth/sign_in', to: '/auth/sign_in',
icon: require('@tabler/icons/icons/plus.svg'), icon: require('@tabler/icons/icons/plus.svg'),
}); });
menu.push({ menu.push({
text: intl.formatMessage(messages.logout, { acct: account.get('acct') }), text: intl.formatMessage(messages.logout, { acct: account.get('acct') }),
to: '/auth/sign_out', to: '/auth/sign_out',