2025-07-26 20:26:12 +02:00
|
|
|
import js from '@eslint/js';
|
|
|
|
import globals from 'globals';
|
|
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
import { defineConfig } from 'eslint/config';
|
2025-07-21 22:28:31 +02:00
|
|
|
|
|
|
|
export default defineConfig([
|
|
|
|
js.configs.recommended,
|
|
|
|
tseslint.configs.recommended,
|
|
|
|
{
|
2025-07-26 20:26:12 +02:00
|
|
|
files: ['**/*.{ts,tsx}'],
|
2025-07-21 22:28:31 +02:00
|
|
|
languageOptions: {
|
|
|
|
parser: tseslint.parser,
|
|
|
|
parserOptions: {
|
2025-07-26 20:26:12 +02:00
|
|
|
ecmaVersion: 'latest',
|
|
|
|
sourceType: 'module',
|
2025-07-21 22:28:31 +02:00
|
|
|
},
|
|
|
|
globals: globals.node,
|
|
|
|
},
|
|
|
|
plugins: {
|
2025-07-26 20:26:12 +02:00
|
|
|
'@typescript-eslint': tseslint.plugin,
|
2025-07-21 22:28:31 +02:00
|
|
|
},
|
|
|
|
rules: {
|
2025-07-26 20:26:12 +02:00
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
|
|
'@typescript-eslint/no-unused-vars': [
|
|
|
|
'error',
|
2025-07-23 20:38:17 +02:00
|
|
|
{
|
2025-07-26 20:26:12 +02:00
|
|
|
argsIgnorePattern: '^_',
|
|
|
|
varsIgnorePattern: '^_',
|
2025-07-23 20:38:17 +02:00
|
|
|
},
|
|
|
|
],
|
2025-07-21 22:28:31 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
]);
|