reduce ts-ignore count

This commit is contained in:
Sebastian Sdorra
2020-06-12 13:20:04 +02:00
parent becb0d0208
commit 2fab4f5eea

View File

@@ -27,8 +27,6 @@ import { Person, Repository } from "@scm-manager/ui-types";
// @ts-ignore // @ts-ignore
import { LightAsync as ReactSyntaxHighlighter, createElement } from "react-syntax-highlighter"; import { LightAsync as ReactSyntaxHighlighter, createElement } from "react-syntax-highlighter";
// @ts-ignore
import { arduinoLight } from "react-syntax-highlighter/dist/cjs/styles/hljs"; import { arduinoLight } from "react-syntax-highlighter/dist/cjs/styles/hljs";
import styled from "styled-components"; import styled from "styled-components";
import DateShort from "./DateShort"; import DateShort from "./DateShort";
@@ -116,7 +114,7 @@ const Popover = styled.div`
height: 0; height: 0;
width: 0; width: 0;
top: 100%; top: 100%;
/*left: 50%;*/ left: 5.5em;
border-color: transparent; border-color: transparent;
border-bottom-color: white; border-bottom-color: white;
border-left-color: white; border-left-color: white;
@@ -163,11 +161,9 @@ const shortRevision = (revision: string) => {
}; };
const Annotate: FC<Props> = ({ source, repository }) => { const Annotate: FC<Props> = ({ source, repository }) => {
// @ts-ignore const defaultRenderer = ({ rows, stylesheet, useInlineStyles }: any) => {
const defaultRenderer = ({ rows, stylesheet, useInlineStyles }) => {
let lastRevision = ""; let lastRevision = "";
// @ts-ignore return rows.map((node: any, i: number) => {
return rows.map((node, i) => {
const line = createElement({ const line = createElement({
node, node,
stylesheet, stylesheet,