From e491abb55723ab20a36ead83320e40627cca8e06 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 3 Apr 2020 03:37:31 +0300 Subject: fix: correct linting errors :rotating_light: --- src/index.tsx | 2 +- src/lib/Markdown/Markdown.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 9678beb..6646cf0 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -90,7 +90,7 @@ const App: React.FC = () => { primary - + diff --git a/src/lib/Markdown/Markdown.tsx b/src/lib/Markdown/Markdown.tsx index 944ac86..b3119f1 100644 --- a/src/lib/Markdown/Markdown.tsx +++ b/src/lib/Markdown/Markdown.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from 'react'; +import React, { useState } from 'react'; import axios from 'axios'; import ContentSection from '../ContentSection/ContentSection'; @@ -30,7 +30,7 @@ const Level: React.FC = ({ rawLines, level = 0 }) => { const rawContent = (contentSize > 0) ? rawLines.slice(1, contentSize) : rawLines.slice(1); const rawChildren = rawLines.slice(contentSize); - const childrenLineGroups = rawChildren.reduce((acc: any[], cur: string) => { + const childrenLineGroups = rawChildren.reduce((acc: string[][], cur: string) => { if (cur.match(header(level + 1))) acc.push([]); if (acc.length) acc[acc.length - 1].push(cur); return acc; -- cgit v1.2.3