{"size": 679, "ext": "js", "max_stars_repo_path": "src/scripts/createItem.js", "max_stars_repo_name": "mccrush/atiop2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/scripts/createItem.js", "max_issues_repo_name": "mccrush/atiop2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/scripts/createItem.js", "max_forks_repo_name": "mccrush/atiop2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.25, "max_line_length": 180, "alphanum_fraction": 0.5684830633}
import getDateNow from './getDateNow'
export default (id = Date.now().toString(), title, type = 'tasks', napravId = '', projectId = '', listId = '', napravTitle = '', projectTitle = '', listTitle = '', length = 0) => {
  const item = {
    id,
    title,
    description: '',
    type,
    napravId,
    napravTitle,
    projectId,
    projectTitle,
    listId,
    listTitle,
    status: 'todo',
    position: length + 1, // По умолчанию в конец списка
    color: '', // У задач нет цвета
    date: '',
    dateCreate: getDateNow,
    dateStart: '',
    dateDone: '',
    deadline: '',
    price: 0,
    time: 0,
    sortField: 'position',
    sortDir: 'asc'
  }
  return item
}