Skip to content

Commit cce0dcf

Browse files
Merge pull request #487 from Gheoan/lint
chore(src): lint
2 parents 75f7904 + cf66078 commit cce0dcf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/aurelia.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*eslint no-unused-vars:0*/
21
import * as TheLogManager from 'aurelia-logging';
32
import {Container} from 'aurelia-dependency-injection';
43
import {Loader} from 'aurelia-loader';

src/framework-configuration.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*eslint no-unused-vars:0, no-cond-assign:0, consistent-return: 0*/
21
import * as TheLogManager from 'aurelia-logging';
32
import {ViewEngine} from 'aurelia-templating';
43
import {join} from 'aurelia-path';
@@ -10,7 +9,8 @@ const extPattern = /\.[^/.]+$/;
109
function 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

Comments
 (0)