Skip to content

Commit

Permalink
Prevent for...of with a lint rule, and disable rule for non-sim cases…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 12, 2018
1 parent b8336ff commit dc0c7fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions js/createHTMLString.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ const createHTMLString = function( data ) {
let documentPaths = flatten( [ ...repos ].map( getFullDocPaths ) );

let mdData = {};
for ( let docPath of documentPaths ) {
for ( let docPath of documentPaths ) { // eslint-disable-line no-restricted-syntax
let name = path.basename( docPath, '.md' );
mdData[ name ] = processFile( docPath );
}

let parentComponents = Object.values( mdData ).filter( component => component.data.parent );
// loop over each parent component
for ( let parent of parentComponents ) {
for ( let parent of parentComponents ) { // eslint-disable-line no-restricted-syntax
let componentsHTML = '';

for ( const component of parent.data.components ) {
for ( const component of parent.data.components ) { // eslint-disable-line no-restricted-syntax
const repoComponent = `${parent.repo}/${component}`;
const simObject = data[ repoComponent ];
const simCount = simObject ? Object.keys( simObject ).length : 0;
Expand Down
2 changes: 1 addition & 1 deletion js/getFromSimInMaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = async ( commandLineSims ) => {
let sims = commandLineSims ? commandLineSims.split( ',' ) : getSims();
console.log( 'sims to load:', sims.join( ', ' ) );

for ( let sim of sims ) {
for ( let sim of sims ) { // eslint-disable-line no-restricted-syntax

const page = await browser.newPage();

Expand Down

0 comments on commit dc0c7fb

Please sign in to comment.