Improve eslint rules (#3147)
* Add semi to ESLint rules * Add padded-blocks to ESLint rules * Add comma-dangle to ESLint rules * add config/webpack and storyboard * add streaming/ * yarn test:lint -- --fix
This commit is contained in:
committed by
Eugen Rochko
parent
812fe90eca
commit
2e112e2406
.eslintrc.ymllink_header.jsmain.js
app/javascript
mastodon
actions
accounts.jsalerts.jsblocks.jscards.jscompose.jsdomain_blocks.jsfavourites.jsinteractions.jsmodal.jsmutes.jsnotifications.jsreports.jssearch.jssettings.jsstatuses.jsstore.jstimelines.js
api.jscomponents
account.jsattachment_list.jsautosuggest_textarea.jsavatar.jsavatar_overlay.jsbutton.jscollapsable.jscolumn_back_button.jscolumn_back_button_slim.jscolumn_collapsable.jsdisplay_name.jsdropdown_menu.jsextended_video_player.jsicon_button.jsload_more.jsmedia_gallery.jspermalink.jsrelative_timestamp.jsstatus.jsstatus_action_bar.jsstatus_content.jsstatus_list.jsvideo_player.js
containers
features
account
components
account_gallery
account_timeline
blocks
community_timeline
compose
components
autosuggest_account.jscharacter_counter.jscompose_form.jsemoji_picker_dropdown.jsnavigation_bar.jsprivacy_dropdown.jsreply_indicator.jssearch.jssearch_results.jstext_icon_button.jsupload_button.jsupload_form.jsupload_progress.jswarning.js
containers
autosuggest_account_container.jsautosuggest_status_container.jscompose_form_container.jsnavigation_container.jsprivacy_dropdown_container.jsreply_indicator_container.jssearch_container.jssearch_results_container.jssensitive_button_container.jsspoiler_button_container.jsupload_button_container.jsupload_form_container.jsupload_progress_container.jswarning_container.js
index.jsfavourited_statuses
favourites
follow_requests
followers
following
getting_started
hashtag_timeline
home_timeline
mutes
notifications
public_timeline
reblogs
report
status
ui
locales
locale-data
middleware
reducers
accounts.jsaccounts_counters.jsalerts.jscompose.jsindex.jsmeta.jsmodal.jsnotifications.jsrelationships.jsreports.jssearch.jssettings.jsstatus_lists.jsstatuses.jstimelines.jsuser_lists.js
selectors
packs
config/webpack
configuration.jsdevelopment.jsdevelopment.server.js
package.jsonloaders
production.jsshared.jstest.jstranslationRunner.jsstorybook
streaming
@ -13,12 +13,12 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||
const messages = defineMessages({
|
||||
unfollow: { id: 'account.unfollow', defaultMessage: 'Unfollow' },
|
||||
follow: { id: 'account.follow', defaultMessage: 'Follow' },
|
||||
requested: { id: 'account.requested', defaultMessage: 'Awaiting approval' }
|
||||
requested: { id: 'account.requested', defaultMessage: 'Awaiting approval' },
|
||||
});
|
||||
|
||||
const makeMapStateToProps = () => {
|
||||
const mapStateToProps = (state, props) => ({
|
||||
autoPlayGif: state.getIn(['meta', 'auto_play_gif'])
|
||||
autoPlayGif: state.getIn(['meta', 'auto_play_gif']),
|
||||
});
|
||||
|
||||
return mapStateToProps;
|
||||
@ -28,11 +28,11 @@ class Avatar extends ImmutablePureComponent {
|
||||
|
||||
static propTypes = {
|
||||
account: ImmutablePropTypes.map.isRequired,
|
||||
autoPlayGif: PropTypes.bool.isRequired
|
||||
autoPlayGif: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
||||
state = {
|
||||
isHovered: false
|
||||
isHovered: false,
|
||||
};
|
||||
|
||||
handleMouseOver = () => {
|
||||
@ -77,7 +77,7 @@ class Header extends ImmutablePureComponent {
|
||||
me: PropTypes.number.isRequired,
|
||||
onFollow: PropTypes.func.isRequired,
|
||||
intl: PropTypes.object.isRequired,
|
||||
autoPlayGif: PropTypes.bool.isRequired
|
||||
autoPlayGif: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
||||
render () {
|
||||
@ -97,7 +97,7 @@ class Header extends ImmutablePureComponent {
|
||||
}
|
||||
|
||||
if (me !== account.get('id') && account.getIn(['relationship', 'followed_by'])) {
|
||||
info = <span className='account--follows-info'><FormattedMessage id='account.follows_you' defaultMessage='Follows you' /></span>
|
||||
info = <span className='account--follows-info'><FormattedMessage id='account.follows_you' defaultMessage='Follows you' /></span>;
|
||||
}
|
||||
|
||||
if (me !== account.get('id')) {
|
||||
|
Reference in New Issue
Block a user