mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-13 16:04:05 +09:00
Fix annoying errors with tsconfig
This commit is contained in:
@@ -31,5 +31,5 @@ module.exports = {
|
||||
settings: {
|
||||
'svelte3/typescript': true
|
||||
},
|
||||
ignorePatterns: ['node_modules/*', 'dist/*', 'vite-env.d.ts', 'src-tauri/*']
|
||||
ignorePatterns: ['node_modules/*', 'dist/*', 'vite-env.d.ts', 'src-tauri/*', '.eslintrc.cjs']
|
||||
}
|
||||
|
||||
@@ -5,16 +5,7 @@
|
||||
"useDefineForClassFields": true,
|
||||
"module": "ESNext",
|
||||
"resolveJsonModule": true,
|
||||
"strictNullChecks": true,
|
||||
/**
|
||||
* Typecheck JS in `.svelte` and `.js` files by default.
|
||||
* Disable checkJs if you'd like to use dynamic types in JS.
|
||||
* Note that setting allowJs false does not prevent the use
|
||||
* of JS in `.svelte` files.
|
||||
*/
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"isolatedModules": true
|
||||
"strictNullChecks": true
|
||||
},
|
||||
"include": ["src/**/*.d.ts", "src/**/*.ts", "src/**/*.js", "src/**/*.svelte", "vite.config.ts", "svelte.config.js"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }]
|
||||
|
||||
Reference in New Issue
Block a user