1- /*eslint no-unused-vars:0, no-cond-assign:0, consistent-return: 0*/
21import * as TheLogManager from 'aurelia-logging' ;
32import { ViewEngine } from 'aurelia-templating' ;
43import { join } from 'aurelia-path' ;
@@ -10,7 +9,8 @@ const extPattern = /\.[^/.]+$/;
109function runTasks ( config , tasks ) {
1110 let current ;
1211 let next = ( ) => {
13- if ( current = tasks . shift ( ) ) {
12+ current = tasks . shift ( ) ;
13+ if ( current ) {
1414 return Promise . resolve ( current ( config ) ) . then ( next ) ;
1515 }
1616
@@ -34,7 +34,7 @@ function loadPlugin(config, loader, info) {
3434 return _loadPlugin ( id ) ;
3535
3636 function _loadPlugin ( moduleId ) {
37- return loader . loadModule ( moduleId ) . then ( m => {
37+ return loader . loadModule ( moduleId ) . then ( m => { // eslint-disable-line consistent-return
3838 if ( 'configure' in m ) {
3939 return Promise . resolve ( m . configure ( config , info . config || { } ) ) . then ( ( ) => {
4040 config . resourcesRelativeTo = null ;
@@ -98,7 +98,7 @@ function loadResources(aurelia, resourcesToLoad, appResources) {
9898 }
9999}
100100
101- function getExt ( name ) {
101+ function getExt ( name ) { // eslint-disable-line consistent-return
102102 let match = name . match ( extPattern ) ;
103103 if ( match && match . length > 0 ) {
104104 return ( match [ 0 ] . split ( '.' ) ) [ 1 ] ;
@@ -373,7 +373,8 @@ export class FrameworkConfiguration {
373373 let current ;
374374
375375 let next = ( ) => {
376- if ( current = info . shift ( ) ) {
376+ current = info . shift ( ) ;
377+ if ( current ) {
377378 return loadPlugin ( this , loader , current ) . then ( next ) ;
378379 }
379380
0 commit comments