mirror of
https://github.com/unraid/api.git
synced 2026-05-07 23:51:40 -05:00
chore: add linter to unraid ui and simplify tsconfigs (#1308)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Introduced a linting step in the build process to enhance code quality. - Updated configuration settings with a version upgrade and adjustments to network port specifications. - Refined package and TypeScript configurations for improved module resolution and maintainability. - **Style** - Standardized code formatting with consistent quotation usage, semicolon additions, and reorganized import paths for clarity. - Enhanced readability of SVG markup and component templates through formatting adjustments. - Simplified property definitions and improved code organization within components for better readability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
+31
-14
@@ -1,32 +1,50 @@
|
||||
{
|
||||
"extends": "./tsconfig.app.json",
|
||||
"compilerOptions": {
|
||||
"incremental": true,
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.tsbuildinfo",
|
||||
"target": "ES2020",
|
||||
"useDefineForClassFields": true,
|
||||
"module": "ESNext",
|
||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||
"skipLibCheck": true,
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
"noEmit": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"],
|
||||
"@/components/*": ["./src/components/*"],
|
||||
"@/lib/*": ["./src/lib/*"],
|
||||
"@/types/*": ["./src/types/*"],
|
||||
"@/styles": ["./src/styles"],
|
||||
"@/components": ["./src/components"],
|
||||
"@/composables": ["./src/composables"],
|
||||
"@/lib": ["./src/lib"],
|
||||
"@/types": ["./src/types"],
|
||||
"@/theme": ["./src/theme"]
|
||||
},
|
||||
"types": [
|
||||
"vite/client",
|
||||
"vitest/globals",
|
||||
"node",
|
||||
"happy-dom",
|
||||
"@vue/test-utils",
|
||||
"@testing-library/vue"
|
||||
],
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": ["tailwind.config.ts"],
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*/*.ts",
|
||||
"src/**/*.d.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.vue",
|
||||
"src/**/*.ce.vue",
|
||||
"./tailwind.config.ts",
|
||||
"src/theme/**/*.ts"
|
||||
"tailwind.config.ts",
|
||||
"src/theme/**/*.ts",
|
||||
"**/*.config.ts",
|
||||
"eslint.config.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
@@ -36,6 +54,5 @@
|
||||
"**/*.spec.ts",
|
||||
"**/*.test.tsx",
|
||||
"**/*.spec.tsx"
|
||||
],
|
||||
"references": [{ "path": "./tsconfig.test.json" }]
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user