2026-04-29 14:41:24 +00:00
|
|
|
import js from '@eslint/js';
|
|
|
|
|
import { defineConfig } from 'eslint/config';
|
|
|
|
|
import globals from 'globals';
|
|
|
|
|
import tsParser from '@typescript-eslint/parser';
|
|
|
|
|
import tsPlugin from '@typescript-eslint/eslint-plugin';
|
|
|
|
|
|
|
|
|
|
export default defineConfig([
|
|
|
|
|
{
|
2026-06-25 14:47:22 +00:00
|
|
|
ignores: ['main.js', 'node_modules/**', 'src/**/*.js', 'tests/**'],
|
2026-04-29 14:41:24 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
files: ['**/*.ts'],
|
|
|
|
|
languageOptions: {
|
|
|
|
|
parser: tsParser,
|
|
|
|
|
parserOptions: {
|
|
|
|
|
sourceType: 'module',
|
|
|
|
|
project: './tsconfig.json',
|
|
|
|
|
ecmaVersion: 'latest',
|
|
|
|
|
},
|
|
|
|
|
globals: {
|
|
|
|
|
...globals.browser,
|
|
|
|
|
...globals.node,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
plugins: {
|
|
|
|
|
'@typescript-eslint': tsPlugin,
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
...js.configs.recommended.rules,
|
|
|
|
|
...tsPlugin.configs.recommended.rules,
|
|
|
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]);
|