Showing 2 of 7 total issues
Function render
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { data } = this.props;
const posts = data.allPosts && data.allPosts.edges;
const isLoading = data.loading ? 'Loading...' : null;
return (
Function server
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(async function server() {
// Set up routes
const router = (new KoaRouter())
// Set-up a general purpose /ping route to check the server is alive
.get('/ping', async ctx => {