Showing 2 of 2 total issues
Function alert
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const alert = (positiveOutcome, negativeOutcome, ...args) => {
const [title, text] = getText(args[0]),
{ autoClose } = args[1] || {},
currentAlert = document.createElement('div');
Function prompt
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const prompt = (positiveOutcome, negativeOutcome, ...args) => {
const [title, text] = getText(args[0]),
{
onAction, defaultResponse, labels, isModal
} = args[1] || {},