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 31d5167 commit 750daea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/ServerTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ module.exports.runTests = async function() {
passed: 0,
failed: 0
};
for ( let testName of Object.keys( testHandlers ) ) {
for ( let testName of Object.keys( testHandlers ) ) { // eslint-disable-line no-restricted-syntax
winston.info( `\n\n\nRunning test ${testName}` );

let { testPass, err } = await this.executeTest( testName );
Expand Down
2 changes: 1 addition & 1 deletion js/translate-sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ $( document ).ready( function() {
const closedTags = ( nonTranslatedString.match( /\<\/[a-zA-Z0-9]+/g ) || [] ).map( s => s.slice( 2 ) );
const tags = openTags.filter( tag => closedTags.includes( tag ) );

for ( let tag of tags ) {
for ( let tag of tags ) { // eslint-disable-line no-restricted-syntax
const openMatch = translatedString.match( new RegExp( `<${tag}[\\s\\>]` ) );
const closedMatch = translatedString.match( new RegExp( `</${tag}[\\s\\>]` ) );

Expand Down

0 comments on commit 750daea

Please sign in to comment.