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:
@@ -3,11 +3,20 @@ import globals from "globals";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
export const config = [
|
||||
{
|
||||
ignores: [
|
||||
'**/node_modules/**',
|
||||
'**/dist/**',
|
||||
'**/build/**',
|
||||
'**/.turbo/**',
|
||||
'**/.svelte-kit/**'
|
||||
]
|
||||
},
|
||||
{
|
||||
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
|
||||
plugins: { js },
|
||||
extends: ["js/recommended"],
|
||||
languageOptions: { globals: { ...globals.browser, ...globals.node } },
|
||||
},
|
||||
tseslint.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user