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
+2 -2
View File
@@ -1,6 +1,6 @@
import React from 'react';
import cn from 'classnames';
export default ({className}) => (
<i className={cn('fa', 'fa-handshake-o', className)} aria-hidden="true"/>
export default ({ className }) => (
<i className={cn('fa', 'fa-handshake-o', className)} aria-hidden="true" />
);
@@ -1,8 +1,8 @@
import React from 'react';
import Icon from './Icon';
import styles from './styles.css';
import {withReaction} from 'plugin-api/beta/client/hocs';
import {t} from 'plugin-api/beta/client/services';
import { withReaction } from 'plugin-api/beta/client/hocs';
import { t } from 'plugin-api/beta/client/services';
import cn from 'classnames';
const plugin = 'talk-plugin-respect';
@@ -31,15 +31,27 @@ class RespectButton extends React.Component {
};
render() {
const {count, alreadyReacted} = this.props;
const { count, alreadyReacted } = this.props;
return (
<div className={cn(styles.container, `${plugin}-container`)}>
<button
className={cn(styles.button, {[`${styles.respected} talk-plugin-respect-respected`]: alreadyReacted}, `${plugin}-button`)}
className={cn(
styles.button,
{
[`${
styles.respected
} talk-plugin-respect-respected`]: alreadyReacted,
},
`${plugin}-button`
)}
onClick={this.handleClick}
>
<span className={cn(`${plugin}-label`, styles.label)}>
{t(alreadyReacted ? 'talk-plugin-respect.respected' : 'talk-plugin-respect.respect')}
{t(
alreadyReacted
? 'talk-plugin-respect.respected'
: 'talk-plugin-respect.respect'
)}
</span>
<Icon className={cn(styles.icon, `${plugin}-icon`)} />
<span className={cn(`${plugin}-count`)}>{count > 0 && count}</span>
+2 -2
View File
@@ -4,6 +4,6 @@ import translations from './translations.yml';
export default {
translations,
slots: {
commentReactions: [RespectButton]
}
commentReactions: [RespectButton],
},
};
+1 -1
View File
@@ -1,2 +1,2 @@
const {getReactionConfig} = require('../../plugin-api/beta/server');
const { getReactionConfig } = require('../../plugin-api/beta/server');
module.exports = getReactionConfig('respect');