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