Showing 6 of 24,078 total issues
File graphql-types.d.ts
has 2734 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// tslint:disable
export type Maybe<T> = T | null;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
Function BlogPostPage
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const BlogPostPage = (props: BlogPostProps) => {
const { frontmatter, html, timeToRead } = props.data.post;
const avatar = frontmatter.author.avatar.children[0] as ImageSharp;
const tags = props.data.post.frontmatter.tags
Function exports
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = plop => {
plop.addHelper('propsHelper', text => `{${text}}`);
plop.setGenerator('component', {
prompts: [
{
Function BlogPage
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const BlogPage = (props: BlogProps) => {
const tags = props.data.tags.group;
const posts = props.data.posts.edges;
const { pathname } = props.location;
const pageCount = Math.ceil(props.data.posts.totalCount / 10);
Function exports
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = plop => {
plop.setGenerator('blog post', {
prompts: [
{
type: 'input',
Function actions
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
actions: data => {
// Parse data for easy templating
data = unflatten(data);
data.props = data.props || [];
data.haveRequiredProps = data.props.reduce(