Files
Remote-Terminal-for-MeshCore/frontend/eslint.config.js
2026-01-14 20:08:41 -08:00

24 lines
690 B
JavaScript

import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import reactHooks from 'eslint-plugin-react-hooks';
export default tseslint.config(
js.configs.recommended,
...tseslint.configs.recommended,
{
plugins: {
'react-hooks': reactHooks,
},
rules: {
...reactHooks.configs.recommended.rules,
// Allow unused vars prefixed with _
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
// Allow any in specific cases (can tighten later)
'@typescript-eslint/no-explicit-any': 'warn',
},
},
{
ignores: ['dist/', 'node_modules/', '*.config.js', '*.config.ts'],
}
);