1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-22 14:49:43 +02:00

Move from prettier-eslint to eslint-plugin-prettier, update dependencies

This commit is contained in:
Maksim Eltyshev 2020-02-03 18:42:31 +05:00
parent f0e7fb8fd1
commit 9c7c96a780
254 changed files with 5539 additions and 5170 deletions

View file

@ -2,9 +2,7 @@ import React, { useCallback } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { useTranslation } from 'react-i18next';
import {
Button, Grid, Icon, Modal,
} from 'semantic-ui-react';
import { Button, Grid, Icon, Modal } from 'semantic-ui-react';
import { Markdown } from '../../lib/custom-ui';
import NameField from './NameField';
@ -60,7 +58,7 @@ const CardModal = React.memo(
const [t] = useTranslation();
const handleNameUpdate = useCallback(
(newName) => {
newName => {
onUpdate({
name: newName,
});
@ -69,7 +67,7 @@ const CardModal = React.memo(
);
const handleDescriptionUpdate = useCallback(
(newDescription) => {
newDescription => {
onUpdate({
description: newDescription,
});
@ -78,7 +76,7 @@ const CardModal = React.memo(
);
const handleDueDateUpdate = useCallback(
(newDueDate) => {
newDueDate => {
onUpdate({
dueDate: newDueDate,
});
@ -87,7 +85,7 @@ const CardModal = React.memo(
);
const handleTimerUpdate = useCallback(
(newTimer) => {
newTimer => {
onUpdate({
timer: newTimer,
});
@ -101,8 +99,8 @@ const CardModal = React.memo(
});
}, [isSubscribed, onUpdate]);
const userIds = users.map((user) => user.id);
const labelIds = labels.map((label) => label.id);
const userIds = users.map(user => user.id);
const labelIds = labels.map(label => label.id);
return (
<Modal open closeIcon size="small" centered={false} onClose={onClose}>
@ -128,7 +126,7 @@ const CardModal = React.memo(
context: 'title',
})}
</div>
{users.map((user) => (
{users.map(user => (
<span key={user.id} className={styles.attachment}>
<ProjectMembershipsPopup
items={allProjectMemberships}
@ -162,7 +160,7 @@ const CardModal = React.memo(
context: 'title',
})}
</div>
{labels.map((label) => (
{labels.map(label => (
<span key={label.id} className={styles.attachment}>
<LabelsPopup
key={label.id}