Skip to content

Commit

Permalink
🔨 Refactor: delete eslint comment, add commet for require
Browse files Browse the repository at this point in the history
  • Loading branch information
aichbauer committed Apr 5, 2017
1 parent f59e336 commit d2f06d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint global-require: 0 */
/* eslint import/no-dynamic-require: 0 */
import express from 'express';
import entries from 'object.entries';

Expand Down Expand Up @@ -30,6 +28,7 @@ function mapRoutes(routes, pathToController = '../../../app/controllers/') {
controllerMethod = value[1].split('.')[1];

try {
// require babel-register, because import is not supported by node
require('babel-register');
Handler = require(`${myPathToController}${controller}`).default;
c = new Handler();
Expand Down

0 comments on commit d2f06d1

Please sign in to comment.