tsconfig.json strictest
This commit is contained in:
@@ -2,7 +2,7 @@ import "./about.scss";
|
|||||||
import openingImage from "../img/IMG_20240725_175449_803.jpg";
|
import openingImage from "../img/IMG_20240725_175449_803.jpg";
|
||||||
import rainbow from "../img/IMG-0186.jpg";
|
import rainbow from "../img/IMG-0186.jpg";
|
||||||
import japanese from "../img/IMG_20230531_000224_01.jpg";
|
import japanese from "../img/IMG_20230531_000224_01.jpg";
|
||||||
import {PropsWithChildren} from "react";
|
import type {PropsWithChildren} from "react";
|
||||||
|
|
||||||
export default function AboutPage() {
|
export default function AboutPage() {
|
||||||
return <main className="about-page">
|
return <main className="about-page">
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import {motion} from "framer-motion";
|
import {motion} from "framer-motion";
|
||||||
import "./canvas.scss";
|
import "./canvas.scss";
|
||||||
import {Canvas as ThreeCanvas, useFrame} from "@react-three/fiber";
|
import {Canvas as ThreeCanvas, useFrame} from "@react-three/fiber";
|
||||||
import React, {useMemo, useRef, useState} from "react";
|
import {Vector3} from "three";
|
||||||
import {Mesh, Vector3} from "three";
|
|
||||||
import {Moon} from "./Moon";
|
import {Moon} from "./Moon";
|
||||||
import {Stars} from "./Stars";
|
import {Stars} from "./Stars";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {useMemo, useRef, useState} from "react";
|
import {useRef, useState} from "react";
|
||||||
import {Mesh} from "three";
|
import {Mesh} from "three";
|
||||||
import {useFrame} from "@react-three/fiber";
|
import {useFrame} from "@react-three/fiber";
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import React, {useState} from "react";
|
import {useState} from "react";
|
||||||
import {Link} from "../router/Link";
|
import {Link} from "../router/Link";
|
||||||
import {motion} from "framer-motion";
|
import {motion} from "framer-motion";
|
||||||
|
|
||||||
export function Links() {
|
export function Links() {
|
||||||
const [links, setLinks] = useState(["About", "Articles"]);
|
const [links] = useState(["About", "Articles"]);
|
||||||
|
|
||||||
return <div className="links">
|
return <div className="links">
|
||||||
{ links.map(() => /* add spacers for flexbox */ <div/> )}
|
{ links.map(() => /* add spacers for flexbox */ <div/> )}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, {useState} from "react";
|
import {useState} from "react";
|
||||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||||
import {faBars} from "@fortawesome/free-solid-svg-icons/faBars";
|
import {faBars} from "@fortawesome/free-solid-svg-icons/faBars";
|
||||||
import {Menu} from "./Menu";
|
import {Menu} from "./Menu";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {createContext, PropsWithChildren, useContext, useEffect, useState, useSyncExternalStore} from "react";
|
import {createContext, PropsWithChildren, useContext, useEffect, useState, } from "react";
|
||||||
import {DEFAULT, Path, Router} from "./router";
|
import {DEFAULT, Path, Router} from "./router";
|
||||||
|
|
||||||
const RouterContext = createContext<Router>(DEFAULT);
|
const RouterContext = createContext<Router>(DEFAULT);
|
||||||
|
|||||||
@@ -1,28 +1,38 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"target": "ES2022",
|
||||||
"lib": [
|
"lib": [
|
||||||
"dom",
|
"DOM",
|
||||||
"dom.iterable",
|
"DOM.Iterable",
|
||||||
"esnext"
|
"ES2022"
|
||||||
],
|
],
|
||||||
"types": [
|
"types": [
|
||||||
"webpack/module",
|
"webpack/module",
|
||||||
"./src/index.d.ts"
|
"./src/index.d.ts"
|
||||||
],
|
],
|
||||||
"allowJs": true,
|
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"strict": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"module": "ESNext",
|
||||||
"module": "esnext",
|
"moduleResolution": "bundler",
|
||||||
"moduleResolution": "node",
|
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"jsx": "react-jsx"
|
"jsx": "react-jsx",
|
||||||
|
|
||||||
|
"strict": true,
|
||||||
|
"allowJs": false,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"allowUnreachableCode": false,
|
||||||
|
"exactOptionalPropertyTypes": true,
|
||||||
|
"noImplicitOverride": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noPropertyAccessFromIndexSignature": true,
|
||||||
|
"noUncheckedIndexedAccess": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"allowUnusedLabels": false,
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src"
|
"src"
|
||||||
|
|||||||
Reference in New Issue
Block a user