Showing 4 of 4 total issues
Function netlifyIdentityPlugin
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function netlifyIdentityPlugin(options = {}): Plugin {
const emt: mitt.Emitter = new mitt();
const netlifyIdentity = {
on: emt.on,
Function customAPIPlugin
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function customAPIPlugin(options?: PluginOptions): Plugin {
function mapFileObject(file) {
return {
title: traverseData(options.fields.title || 'title', file),
content: traverseData(options.fields.summary || 'content', file),
Function buildRoutes
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildRoutes(routes: { [path: string]: Route }, store: SiteStore) {
let generated = {};
Object.keys(routes).forEach(path => {
const _route = routes[path] as Route;
Function initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function initialize(options: SulatOptions) {
const store: SiteStore = createSession();
store.setState({
config: {