refactor: update ESLint configuration and improve Svelte component structure

- Added .eslintcache to .gitignore for better cache management.
- Enhanced ESLint configuration to ignore specific directories and files for cleaner linting.
- Updated Svelte components to use unique keys in loops for improved performance and maintainability.
- Cleaned up imports and standardized formatting across various components for better code clarity.
- Resolved merge conflicts in multiple Svelte files to ensure consistent functionality.
This commit is contained in:
2025-11-12 08:45:40 -03:00
parent dab4754e47
commit 2fb934ba18
8 changed files with 156 additions and 1474 deletions

View File

@@ -7,14 +7,22 @@ import { defineConfig } from "eslint/config";
export default defineConfig([
...svelteConfigBase,
{
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
projectService: true,
extraFileExtensions: ['.svelte'],
parser: ts.parser,
extraFileExtensions: ['.svelte'],
svelteConfig
}
}
},
{
ignores: [
'**/node_modules/**',
'**/.svelte-kit/**',
'**/build/**',
'**/dist/**',
'**/.turbo/**'
]
}
])
])