fix build

This commit is contained in:
SethBurkart123
2023-09-20 06:34:17 +10:00
parent f34d0a3e77
commit 942e805668
10 changed files with 32 additions and 19 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite build --watch",
"build": "tsc && vite build", "build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview" "preview": "vite preview"
-10
View File
@@ -1,10 +0,0 @@
export interface SettingsState {
notificationCollector: boolean;
lessonAlerts: boolean;
animatedBackground: boolean;
animatedBackgroundSpeed: boolean;
customThemeColor: string;
betterSEQTAPlus: boolean;
}
declare const App: React.FC;
export default App;
+1 -1
View File
@@ -1,5 +1,5 @@
// App.tsx // App.tsx
import { useState } from 'react'; import React, { useState } from 'react';
import TabbedContainer from './components/TabbedContainer'; import TabbedContainer from './components/TabbedContainer';
import Settings from './pages/Settings'; import Settings from './pages/Settings';
import logo from './assets/betterseqta-dark-full.png'; import logo from './assets/betterseqta-dark-full.png';
+1 -3
View File
@@ -1,7 +1,5 @@
// TODO: Create types for ColorPicker
// @ts-expect-error No typescript declarations available
import ColorPicker from 'react-best-gradient-color-picker'; import ColorPicker from 'react-best-gradient-color-picker';
import { useState, useRef, useEffect } from 'react'; import React, { useState, useRef, useEffect } from 'react';
interface ColorPickerProps { interface ColorPickerProps {
color: string; color: string;
-1
View File
@@ -1 +0,0 @@
declare module '*.png';
-1
View File
@@ -1 +0,0 @@
declare module '*.png';
+5
View File
@@ -1 +1,6 @@
import './index.css'; import './index.css';
declare module "*.png";
declare module "*.svg";
declare module "*.jpeg";
declare module "*.jpg";
-1
View File
@@ -4,7 +4,6 @@ export default {
"./index.html", "./index.html",
"./src/**/*.{js,ts,jsx,tsx}", "./src/**/*.{js,ts,jsx,tsx}",
], ],
important: true,
darkMode: "class", darkMode: "class",
theme: { theme: {
fontSize: { fontSize: {
+1 -1
View File
@@ -20,6 +20,6 @@
"noUnusedParameters": true, "noUnusedParameters": true,
"noFallthroughCasesInSwitch": true "noFallthroughCasesInSwitch": true
}, },
"include": ["../src/src"], "include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }] "references": [{ "path": "./tsconfig.node.json" }]
} }
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"target": "ES2016",
"useDefineForClassFields": true,
"lib": ["ES2016", "DOM", "DOM.Iterable"],
"module": "ES2015",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": false,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": false,
"jsx": "react-jsx",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
}