aiao-io/aiao

View on GitHub
libs/elements/src/lib/utils/render/default-options.ts

Summary

Maintainability
A
0 mins
Test Coverage

Function elementsDefaultOption has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

const elementsDefaultOption = (configs: IElementConfig[], data: IElementData): IElementData => {
  const { tag, slot: dataSlot, class: cls, style, attributes, children } = data;
  let { innerText, innerHTML } = data;
  const config = configs.find(conf => conf.tag === tag);
  if (!config) {
Severity: Minor
Found in libs/elements/src/lib/utils/render/default-options.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status