✏️ chore: fix linting problems

This commit is contained in:
2024-01-20 11:24:06 +01:00
parent 51070914e7
commit 3653aa2b7c
5 changed files with 21 additions and 14 deletions
+1 -1
View File
@@ -1,8 +1,8 @@
{
"name": "m-tartari.github.io",
"private": true,
"version": "1.0.0-alpha.0",
"type": "module",
"private": true,
"scripts": {
"start": "npm run start:dev",
"start:dev": "npm run dev",
+1 -1
View File
@@ -6,5 +6,5 @@ import './index.css'
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
</React.StrictMode>
)
+16 -6
View File
@@ -2,10 +2,13 @@
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
@@ -14,14 +17,21 @@
"noEmit": true,
"jsx": "react-jsx",
"baseUrl": "src",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"types": ["@testing-library/jest-dom"],
"types": [
"@testing-library/jest-dom"
],
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
"include": [
"src"
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}
+2 -5
View File
@@ -4,10 +4,7 @@ import viteTsconfigPaths from 'vite-tsconfig-paths'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
viteTsconfigPaths(),
],
plugins: [react(), viteTsconfigPaths()],
server: {
open: true,
host: true,
@@ -17,5 +14,5 @@ export default defineConfig({
globals: true,
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
}
},
})
+1 -1
View File
@@ -2,4 +2,4 @@
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';
import '@testing-library/jest-dom'