chore: linter fixes

pull/2478/head
Luke Edwards 6 years ago
parent 999b1f4cdb
commit 5830cf346e

@ -56,7 +56,7 @@ export default function() {
renderer.link = link_renderer;
renderer.hr = (...args) => {
renderer.hr = () => {
block_open = true;
return '<div class="side-by-side"><div class="copy">';
@ -92,7 +92,7 @@ export default function() {
lang
);
let html = `<div class='${className}'>${prefix}<pre class='language-${plang}'><code>${highlighted}</code></pre></div>`;
const html = `<div class='${className}'>${prefix}<pre class='language-${plang}'><code>${highlighted}</code></pre></div>`;
if (block_open) {
block_open = false;

@ -1,5 +1,4 @@
import fs from 'fs';
import path from 'path';
let lookup;
const titles = new Map();

@ -42,7 +42,7 @@ function get_sections() {
throw new Error(`Error building tutorial ${dir}/${tutorial}: ${err.message}`);
}
})
}
};
});
return sections;

@ -13,7 +13,7 @@ export function keyEvent(code) {
node.removeEventListener('keydown', handleKeydown);
}
};
}
};
}
export const enter = keyEvent(13);

@ -58,4 +58,4 @@ export function link_renderer(href,title,text) {
}
return `<a href="${href}"${target_attr}${title_attr}>${text}</a>`;
};
}

Loading…
Cancel
Save