old_contents: const validIssueStatus = {
    New: true,
    Open: true,
    Assigned: true,
    Fixed: true,
    Verified: true,
    Closed: true,
  };
  
  const issueFieldType = {
    status: 'required',
    owner: 'required',
    effort: 'required',
    created: 'required',
    completionDate: 'optional',
    title: 'required',
  };
  
  function validateIssue(issue) {
    for (var field in issue) {
      const type = issueFieldType[field];
  
      if (!type) {
        delete issue[field];
      } else if (type === 'required' && !issue[field]) {
        return `${field} is required.`;
      }
    }
  
    if (!validIssueStatus[issue.status]) {
      return `${issue.status} is not a valid status.`;
    }
  
    return null;
  }
  
  export default {
    validateIssue: validateIssue
  };
  
new_contents: const validIssueStatus = {
    New: true,
    Open: true,
    Assigned: true,
    Fixed: true,
    Verified: true,
    Closed: true,
  };
  
  const issueFieldType = {
    status: 'required',
    owner: 'required',
    effort: 'required',
    created: 'required',
    completionDate: 'optional',
    title: 'required',
  };
  
  function validateIssue(issue) {
    for (var field in issue) {
      const type = issueFieldType[field];
  
      if (!type) {
        delete issue[field];
      } else if (type === 'required' && !issue[field]) {
        return `${field} is required.`;
      }
    }
  
    if (!validIssueStatus[issue.status]) {
      return `${issue.status} is not a valid status.`;
    }
  
    return null;
  }
  
  export default {
    validateIssue
  };
  
subject: Fix prefer-shorthand errors