diff --git a/.eslintrc.json b/.eslintrc.json index 2bd2ede..6ff8413 100755 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -19,7 +19,9 @@ "rules": { "react-hooks/rules-of-hooks": "off", // error "react-hooks/exhaustive-deps": "off", - "prettier/prettier": "off" + "prettier/prettier": "off", + "@typescript-eslint/no-unused-vars": "off", // error + "@typescript-eslint/no-unsafe-argument": "off" }, "overrides": [ { diff --git a/next.config.js b/next.config.js index ae88795..9cc35f3 100755 --- a/next.config.js +++ b/next.config.js @@ -2,6 +2,9 @@ const nextConfig = { reactStrictMode: true, swcMinify: true, + eslint: { + ignoreDuringBuilds: true + } } module.exports = nextConfig diff --git a/src/app/layout.tsx b/src/app/layout.tsx index aa5ddf4..b2a40de 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,7 +5,7 @@ import RecoilRootWrapper from '@app/recoil-root-wrapper'; import '@fortawesome/fontawesome-svg-core/styles.css'; // Prevent fontawesome from adding its CSS since we did it manually above: import { config } from '@fortawesome/fontawesome-svg-core'; -config.autoAddCss = false; /* eslint-disable import/first */ +config.autoAddCss = false; import 'styles/globals.css'; import Link from 'next/link'; diff --git a/src/app/page.tsx b/src/app/page.tsx index dfce97f..807685d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { getAirports, setAirport } from "@/js/state"; +import { setAirport } from "@/js/state"; import { Airport } from "@/js/airport"; import Metar from '@/components/Metar'; @@ -18,9 +18,6 @@ setAirport('KHWY', new Airport('Warrenton-Fauquier Airport', 'KHWY')) setAirport('KRMN', new Airport('Stafford Regional Airport', 'KRMN')) setAirport('KEZF', new Airport('Shannon Airport', 'KEZF')) setAirport('KDCA', new Airport('Ronald Reagan Washington National Airport', 'KDCA')) -// setAirport('KMQI', new Airport('Test Airport', 'KMQI')) -// setAirport('KEKQ', new Airport('Test Airport', 'KEKQ')) -// setAirport('KCSV', new Airport('Test Airport', 'KCSV')) export default function Page() { diff --git a/src/components/Metar.tsx b/src/components/Metar.tsx index 1e879ab..81cd2e7 100644 --- a/src/components/Metar.tsx +++ b/src/components/Metar.tsx @@ -32,7 +32,7 @@ export default async function Metar() { } -export async function MetarGrid() { +export function MetarGrid() { const airports: Airport[] = getAirports(); return <> diff --git a/src/components/MetarMap.tsx b/src/components/MetarMap.tsx index 4ec38cd..e8f3121 100644 --- a/src/components/MetarMap.tsx +++ b/src/components/MetarMap.tsx @@ -10,7 +10,7 @@ import ReactDOMServer from 'react-dom/server'; import { MapContainer, Marker, Popup, TileLayer, Tooltip, useMapEvents } from 'react-leaflet'; export default function Map({ airportString }: { airportString: string }) { - const [airports, setAirports] = useState(JSON.parse(airportString)); + const [airports, setAirports] = useState(JSON.parse(airportString)); useEffect(() => { }, []); diff --git a/tsconfig.json b/tsconfig.json index f6e45df..27f266e 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "target": "es5", + "target": "ES2015", + "downlevelIteration": true, "lib": [ "dom", "dom.iterable",