eslint.config.js

 1// @ts-check
 2
 3import eslint from '@eslint/js';
 4import tseslint from 'typescript-eslint';
 5
 6export default tseslint.config(
 7  eslint.configs.recommended,
 8  ...tseslint.configs.recommended,
 9  {
10    ignores: ['dist/', 'node_modules/', '*.config.js'],
11  },
12  {
13    languageOptions: {
14      globals: {
15        // Browser globals
16        window: 'readonly',
17        document: 'readonly',
18        console: 'readonly',
19        setTimeout: 'readonly',
20        fetch: 'readonly',
21        EventSource: 'readonly',
22        HTMLDivElement: 'readonly',
23        HTMLTextAreaElement: 'readonly',
24        Event: 'readonly',
25        KeyboardEvent: 'readonly',
26      },
27    },
28  },
29);