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:
@@ -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/**'
|
||||
]
|
||||
}
|
||||
])
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user