app/javascript/components/CommentsContainer.js
Function handleCreateComment
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleCreateComment = (commentId, formType) => {
// form ID is either reply-123 or main
const formId = formType === "reply" ? "reply-" + commentId : "main";
console.log(state.textAreaValues);
const commentBody = state.textAreaValues[formId];
- Create a ticketCreate a ticket
TODO found Open
Open
// TODO: create multicase for "CREATE NEW COMMENT FORM" in reducers.js
- Create a ticketCreate a ticket
- Exclude checks
Parsing error: 'import' and 'export' may appear only with 'sourceType: module' Open
Open
import React, { useReducer, useState } from "react";
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/