linty things

This commit is contained in:
gingervitis 2020-11-28 19:45:52 -08:00
parent ced7a7ca82
commit 3eeb6eaece
12 changed files with 28 additions and 14 deletions

18
web/package-lock.json generated
View file

@ -1566,6 +1566,15 @@
}
}
},
"@types/chart.js": {
"version": "2.9.28",
"resolved": "https://registry.npmjs.org/@types/chart.js/-/chart.js-2.9.28.tgz",
"integrity": "sha512-9YYhsxRngRJb0dkuaU5BezkF+zvvVHnwdRw+rtlahtFb4zqNf9YSgWsOq+dLYeh0fqsWmHUYLR64eNigh02F+w==",
"dev": true,
"requires": {
"moment": "^2.10.2"
}
},
"@types/color-name": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
@ -1613,6 +1622,15 @@
"csstype": "^3.0.2"
}
},
"@types/react-linkify": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@types/react-linkify/-/react-linkify-1.0.0.tgz",
"integrity": "sha512-2NKXPQGaHNfh/dCqkVC55k1tAhQyNoNZa31J50nIneMVwHqUI00FAP+Lyp8e0BarPf84kn4GRVAhtWX9XJBzSQ==",
"dev": true,
"requires": {
"@types/react": "*"
}
},
"@types/unist": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.3.tgz",

View file

@ -23,9 +23,11 @@
"sass": "^1.26.11"
},
"devDependencies": {
"@types/chart.js": "^2.9.28",
"@types/node": "^14.11.2",
"@types/prop-types": "^15.7.3",
"@types/react": "^16.9.49",
"@types/react-linkify": "^1.0.0",
"@typescript-eslint/eslint-plugin": "^4.3.0",
"@typescript-eslint/parser": "^4.3.0",
"eslint": "^7.10.0",

View file

@ -2,12 +2,6 @@ import { LineChart } from 'react-chartkick'
import styles from '../../styles/styles.module.scss';
import 'chart.js';
const defaultProps = {
active: false,
payload: Object,
unit: '',
};
interface TimedValue {
time: Date;
value: number;

View file

@ -2,7 +2,7 @@ import { Table, Typography } from "antd";
const { Title } = Typography;
export default function KeyValueTable({ title, data }) {
export default function KeyValueTable({ title, data }: KeyValueTableProps) {
const columns = [
{
title: "Name",
@ -23,3 +23,8 @@ export default function KeyValueTable({ title, data }) {
</>
);
}
interface KeyValueTableProps {
title: string,
data: any,
};

View file

@ -1,4 +1,5 @@
import { Typography, Statistic, Card, Progress} from "antd";
const { Text } = Typography;
interface StatisticItemProps {

View file

@ -1,4 +1,3 @@
/* eslint-disable no-array-constructor */
import { BulbOutlined, LaptopOutlined, SaveOutlined } from "@ant-design/icons";
import { Row } from "antd";
import React, { useEffect, useState } from 'react';

View file

@ -1,4 +1,3 @@
/* eslint-disable no-console */
/*
Will display an overview with the following datasources:
1. Current broadcaster.

View file

@ -1,4 +1,3 @@
/* eslint-disable react/prop-types */
import React, { useContext } from "react";
import KeyValueTable from "./components/key-value-table";
import { ServerStatusContext } from '../utils/server-status-context';

View file

@ -1,4 +1,3 @@
/* eslint-disable react/prop-types */
import React, { useContext } from 'react';
import { Table, Typography, Input } from 'antd';
import { isEmptyObject } from '../utils/format';

View file

@ -1,4 +1,3 @@
/* eslint-disable react/prop-types */
import React, { useContext } from 'react';
import { Table, Typography } from 'antd';
import { ServerStatusContext } from '../utils/server-status-context';

View file

@ -1,4 +1,3 @@
/* eslint-disable react/prop-types */
import React, { useState, useEffect, useContext } from 'react';
import { Table, Row } from "antd";
import { formatDistanceToNow } from "date-fns";

View file

@ -16,7 +16,7 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
"jsx": "react"
},
"include": [
"next-env.d.ts",