Disabling complexity warning. Allowing non-nested ternary. Upgrading ESList. Adding new ESLint rules. Fixing new ESLint errors.

Этот коммит содержится в:
Christopher Speller
2015-10-05 09:58:42 -04:00
родитель 515d709c2e
Коммит 33b957ed1a
33 изменённых файлов: 351 добавлений и 309 удалений

Просмотреть файл

@@ -18,7 +18,9 @@ export default class Mention extends React.Component {
var timestamp = UserStore.getCurrentUser().update_at;
if (this.props.id === 'allmention' || this.props.id === 'channelmention') {
icon = <span><i className='mention-img fa fa-users fa-2x'></i></span>;
} else if (this.props.id != null) {
} else if (this.props.id == null) {
icon = <span><i className='mention-img fa fa-users fa-2x'></i></span>;
} else {
icon = (
<span>
<img
@@ -27,8 +29,6 @@ export default class Mention extends React.Component {
/>
</span>
);
} else {
icon = <span><i className='mention-img fa fa-users fa-2x'></i></span>;
}
return (
<div