mirror of
https://github.com/Moe-Sakura/frontend.git
synced 2026-04-05 08:35:06 +08:00
- Disabled the 'no-useless-assignment' rule in ESLint to accommodate <script setup> syntax in Vue components. - Updated build and typecheck scripts in package.json for improved development workflow. - Upgraded various dependencies, including ESLint, TypeScript, and Vue-related packages, to their latest versions for better performance and compatibility. - Adjusted tsconfig settings for module resolution and removed unused options to streamline configuration.
32 lines
741 B
JSON
32 lines
741 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"module": "ESNext",
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
"skipLibCheck": true,
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "preserve",
|
|
|
|
/* Linting */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
|
|
/* Vue */
|
|
"types": ["node"],
|
|
"paths": {
|
|
"@/*": ["./src/*"]
|
|
}
|
|
},
|
|
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "src/**/*.d.ts", "env.d.ts", "scripts/**/*.ts"],
|
|
"references": [{ "path": "./tsconfig.node.json" }]
|
|
}
|
|
|