Commit b8caa0cf authored by Fred Chasen's avatar Fred Chasen
Browse files

Merge branch 'enforce-linter' into 'master'

Enforce linter

See merge request !103
parents 79a2dd4e 58b64021
Pipeline #449 failed with stage
in 1 minute and 50 seconds
......@@ -40,7 +40,7 @@
"build": "rollup -c",
"legacy": "rollup -c rollup.legacy.config.js",
"start": "rollup -w -c rollup.server.config.js",
"test": "npm run tests && npm run specs",
"test": "npm run lint && npm run tests && npm run specs",
"tests": "jest",
"specs": "jest --config=specs/jest.config.js",
"compile": "babel src/ -d lib/",
......
......@@ -288,10 +288,10 @@ class Layout {
// Check if temp is the last rendered node at its level.
if (!temp.nextSibling) {
// We need to ensure that the previous sibling of temp is fully rendered.
const renderedNodeFromSource = findElement(renderedNode, source)
const walker = document.createTreeWalker(renderedNodeFromSource, NodeFilter.SHOW_ELEMENT)
const lastChildOfRenderedNodeFromSource = walker.lastChild()
const lastChildOfRenderedNodeMatchingFromRendered = findElement(lastChildOfRenderedNodeFromSource, rendered)
const renderedNodeFromSource = findElement(renderedNode, source);
const walker = document.createTreeWalker(renderedNodeFromSource, NodeFilter.SHOW_ELEMENT);
const lastChildOfRenderedNodeFromSource = walker.lastChild();
const lastChildOfRenderedNodeMatchingFromRendered = findElement(lastChildOfRenderedNodeFromSource, rendered);
// Check if we found that the last child in source
if (!lastChildOfRenderedNodeMatchingFromRendered) {
// Pending content to be rendered before virtual break token
......
......@@ -69,9 +69,9 @@ class StringSets extends Handler {
// let cssVar = previousPageLastString;
// Get the last found string for the current identifier
let cssVar = ( name in this.pageLastString ) ? this.pageLastString[name] : '';
let cssVar = ( name in this.pageLastString ) ? this.pageLastString[name] : "";
selected.forEach((sel) => {
selected.forEach((sel) => {
// push each content into the array to define in the variable the first and the last element of the page.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment