Showing 2 of 2 total issues
Function getNodeHtml
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getNodeHtml = (options) => {
if (options.exists) {
const gifElementId = options.id;
const stillElementId = `still-${options.id}`;
const responsiveness = (options.height / options.width) * 100;
Function sourceNodes
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.sourceNodes = (options, pluginOptions) => {
const { reporter } = options;
Reporter = reporter;
if (validate(pluginOptions)) {