replaced eslint:recommended with prettier

This commit is contained in:
Wyatt Johnson
2018-01-11 20:00:34 -07:00
parent d56c19016a
commit 0abc2ca243
649 changed files with 16235 additions and 13008 deletions
@@ -1,9 +1,8 @@
import {bindActionCreators} from 'redux';
import {connect} from 'plugin-api/beta/client/hocs';
import {notify} from 'plugin-api/beta/client/actions/notification';
import { bindActionCreators } from 'redux';
import { connect } from 'plugin-api/beta/client/hocs';
import { notify } from 'plugin-api/beta/client/actions/notification';
import CheckToxicityHook from '../components/CheckToxicityHook';
const mapDispatchToProps = (dispatch) =>
bindActionCreators({notify}, dispatch);
const mapDispatchToProps = dispatch => bindActionCreators({ notify }, dispatch);
export default connect(null, mapDispatchToProps)(CheckToxicityHook);
@@ -1,10 +1,13 @@
import {compose} from 'react-apollo';
import {excludeIf} from 'plugin-api/beta/client/hocs';
import { compose } from 'react-apollo';
import { excludeIf } from 'plugin-api/beta/client/hocs';
import ToxicDetail from './ToxicDetail';
import {isToxic} from '../utils';
import { isToxic } from '../utils';
const enhance = compose(
excludeIf(({comment: {toxicity, actions}}) => toxicity === null || isToxic(actions)),
excludeIf(
({ comment: { toxicity, actions } }) =>
toxicity === null || isToxic(actions)
)
);
export default enhance(ToxicDetail);
@@ -1,10 +1,13 @@
import {compose} from 'react-apollo';
import {excludeIf} from 'plugin-api/beta/client/hocs';
import { compose } from 'react-apollo';
import { excludeIf } from 'plugin-api/beta/client/hocs';
import ToxicDetail from './ToxicDetail';
import {isToxic} from '../utils';
import { isToxic } from '../utils';
const enhance = compose(
excludeIf(({comment: {toxicity, actions}}) => toxicity === null || !isToxic(actions)),
excludeIf(
({ comment: { toxicity, actions } }) =>
toxicity === null || !isToxic(actions)
)
);
export default enhance(ToxicDetail);
@@ -1,5 +1,5 @@
import {compose, gql} from 'react-apollo';
import {withFragments} from 'plugin-api/beta/client/hocs';
import { compose, gql } from 'react-apollo';
import { withFragments } from 'plugin-api/beta/client/hocs';
import ToxicDetail from '../components/ToxicDetail';
const enhance = compose(
@@ -13,8 +13,9 @@ const enhance = compose(
reason
}
}
}`,
}),
}
`,
})
);
export default enhance(ToxicDetail);
@@ -1,7 +1,7 @@
import {compose, gql} from 'react-apollo';
import {withFragments, excludeIf} from 'plugin-api/beta/client/hocs';
import { compose, gql } from 'react-apollo';
import { withFragments, excludeIf } from 'plugin-api/beta/client/hocs';
import ToxicLabel from '../components/ToxicLabel';
import {isToxic} from '../utils';
import { isToxic } from '../utils';
const enhance = compose(
withFragments({
@@ -13,9 +13,10 @@ const enhance = compose(
reason
}
}
}`,
}
`,
}),
excludeIf(({comment: {actions}}) => !isToxic(actions)),
excludeIf(({ comment: { actions } }) => !isToxic(actions))
);
export default enhance(ToxicLabel);