A modern and elegant dashboard for network traffic visualization and analysis.
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
ignores: ['dist/**', 'node_modules/**'],
},
{
rules: {
// Allow unused vars prefixed with _
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
// Allow explicit any for migration (tighten later)
'@typescript-eslint/no-explicit-any': 'warn',
// Disallow console.log in source (allow warn/error)
'no-console': ['warn', { allow: ['warn', 'error', 'info'] }],
},
},
{
// Relaxed rules for test files
files: ['**/*.test.ts', '**/__tests__/**'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'no-console': 'off',
},
},
);