app/javascript/forms/form-buttons.jsx
Function FormButtons
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FormButtons(props) {
const primaryTitle = props.customLabel || (props.newRecord ? __('Add') : __('Save'));
const primaryHandler = (props.newRecord ? props.addClicked : props.saveClicked) || props.addClicked || props.saveClicked;
// NOTE: These strings will be translated by <MiqButton />
- Create a ticketCreate a ticket
'btnType' is missing in props validation Open
Open
const { btnType } = props;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/