src/server/react-views.js
Function engine
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const engine = (filePath: string, options: Object, callback: Function) => {
const urls = urlsLib(options.options);
const viewName = path.basename(filePath, ".js");
const View = require(filePath);