src/generators/template/builder.js
Function createTagWithBindings
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createTagWithBindings(sourceNode, sourceFile, sourceCode) {
const bindingsSelector = isRootNode(sourceNode)
? null
: createBindingSelector()
const cloneNode = createBindingsTag(sourceNode, bindingsSelector)
Function build
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function build(sourceNode, sourceFile, sourceCode, state) {
if (!sourceNode)
panic(
"Something went wrong with your tag DOM parsing, your tag template can't be created",
)