sforkowany z mirror/soapbox
Merge branch 'eslint-rules' into 'develop'
eslint: add key-spacing and space-unary-ops rules See merge request soapbox-pub/soapbox-fe!890features-override
commit
665d7a1e1f
11
.eslintrc.js
11
.eslintrc.js
|
@ -69,6 +69,10 @@ module.exports = {
|
|||
eqeqeq: 'error',
|
||||
indent: ['error', 2],
|
||||
'jsx-quotes': ['error', 'prefer-single'],
|
||||
'key-spacing': [
|
||||
'error',
|
||||
{ mode: 'minimum' },
|
||||
],
|
||||
'no-catch-shadow': 'error',
|
||||
'no-cond-assign': 'error',
|
||||
'no-console': [
|
||||
|
@ -111,6 +115,13 @@ module.exports = {
|
|||
'prefer-const': 'error',
|
||||
quotes: ['error', 'single'],
|
||||
semi: 'error',
|
||||
'space-unary-ops': [
|
||||
'error',
|
||||
{
|
||||
words: true,
|
||||
nonwords: false,
|
||||
},
|
||||
],
|
||||
strict: 'off',
|
||||
'valid-typeof': 'error',
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ class ProfileDropdown extends React.PureComponent {
|
|||
});
|
||||
|
||||
return (
|
||||
<div className='compose__action-bar' style={{ 'marginTop':'-6px' }}>
|
||||
<div className='compose__action-bar' style={{ marginTop: '-6px' }}>
|
||||
<div className='compose__action-bar-dropdown'>
|
||||
<DropdownMenuContainer items={menu} icon='chevron-down' size={size} direction='right' />
|
||||
</div>
|
||||
|
|
Ładowanie…
Reference in New Issue