src/pages/templates/index.js
Function exports
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(directory){
var pagesDirectory = directory + '/pages';
var dirs = [__dirname, pagesDirectory];
var errorDirectory = path.join(directory, 'errors');