mirror of
https://gh.wpcy.net/https://github.com/verygoodplugins/mcp-freescout.git
synced 2026-05-28 21:10:04 +08:00
- Add eslint.config.mjs (flat config for ESLint 9+) - Update devDependencies to ESLint 9 and typescript-eslint 8 - Fix lint errors: unused imports, empty catch blocks, escape chars - Warnings for `any` types are expected for MCP tool flexibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
726 B
JavaScript
24 lines
726 B
JavaScript
// ESLint flat config for VGP MCP servers
|
|
// Requires: eslint ^9.0.0, typescript-eslint ^8.0.0
|
|
import eslint from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['src/**/*.ts'],
|
|
rules: {
|
|
// Allow unused vars prefixed with underscore
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
|
],
|
|
// Allow explicit any in some cases (MCP tools often need flexibility)
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
},
|
|
},
|
|
{
|
|
ignores: ['dist/', 'node_modules/', '**/*.js', '**/*.mjs', '**/*.cjs'],
|
|
}
|
|
);
|