@@ -15,6 +15,7 @@ module.exports = {
},
plugins: ['react-refresh'],
rules: {
+ 'import/no-absolute-path': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
@@ -1,6 +1,6 @@
import { useState } from 'react';
-import viteLogo from '../public/vite.svg';
+import viteLogo from '/vite.svg';
import reactLogo from './assets/react.svg';
@@ -18,7 +18,12 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
- "noFallthroughCasesInSwitch": true
+ "noFallthroughCasesInSwitch": true,
+
+ "baseUrl": ".",
+ "paths": {
+ "/*": ["./public/*"],
+ }
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]