danielmiessler.fabric/web/eslint.config.js
Kayvan Sylvan 1b1feea2b5 feat: modernize web stack and harden chat error handling
- Upgrade Tailwind, Skeleton, SvelteKit, Vite, and supporting dependencies.
- Replace removed Skeleton components with compatible local implementations.
- Report pre-stream chat failures without duplicating streamed errors.
- Return empty model arrays and skip malformed vendor lists.
- Prevent stream completion crashes and normalize displayed error messages.
- Stack toasts correctly and add warning notification support.
- Restore linting, formatting, testing, and pnpm override configuration.
- Preserve custom themes through Tailwind CSS-based configuration migration.
2026-07-30 15:06:58 -07:00

41 lines
1,003 B
JavaScript

import eslint from '@eslint/js';
import prettier from 'eslint-config-prettier';
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: tseslint.parser
}
},
rules: {
// svelte-eslint-parser gives a `$:` reactive statement a variable
// definition of type "ComputedVariable". The typescript-eslint rule
// does not know that type and stops ESLint with a TypeError. Use the
// core ESLint rule for Svelte components instead.
'@typescript-eslint/no-unused-vars': 'off',
'no-unused-vars': 'error'
}
},
{
ignores: ['build/', '.svelte-kit/', 'dist/']
}
);