Fluxos diversos

This commit is contained in:
Lucas Santana 2024-12-19 18:42:52 -03:00
parent bc3f13202e
commit 1e1d5dd138
4 changed files with 9 additions and 5 deletions

View File

@ -5,7 +5,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "tsc && vite build", "build": "tsc --noEmit false && vite build",
"preview": "vite preview", "preview": "vite preview",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",

View File

@ -1,7 +1,7 @@
import { StrictMode } from 'react'; import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client'; import { createRoot } from 'react-dom/client';
import { RouterProvider } from 'react-router-dom'; import { RouterProvider } from 'react-router-dom';
import { router } from './routes'; import { router } from '@/routes';
import './index.css'; import './index.css';
createRoot(document.getElementById('root')!).render( createRoot(document.getElementById('root')!).render(

View File

@ -56,7 +56,11 @@ export interface ClassWithTeachers extends Class {
} }
export interface TeacherWithClasses extends Teacher { export interface TeacherWithClasses extends Teacher {
classes: Class[]; classes: ClassWithStudents[];
}
export interface TeacherWithClassesAndStories extends Teacher {
classes: ClassWithStudentsAndStories[];
} }
export interface ClassWithStudents extends Class { export interface ClassWithStudents extends Class {

View File

@ -12,8 +12,8 @@
"noEmit": true, "noEmit": true,
"jsx": "react-jsx", "jsx": "react-jsx",
"strict": true, "strict": true,
"noUnusedLocals": true, "noUnusedLocals": false,
"noUnusedParameters": true, "noUnusedParameters": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {