lib/create-redirections-from-frontmatters.js
Function exports
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = (files, options = {}) => {
const getRedirectFrom = file =>
_.get(file, options.frontmatter.redirectFrom || 'redirectFrom', null);
const getRedirectTo = file =>
_.get(file, options.frontmatter.redirectTo || 'redirectTo', null);