@sofianedjerbi/knowledge-tree-mcp
Version:
MCP server for hierarchical project knowledge management
48 lines (47 loc) • 1.31 kB
JavaScript
import js from '@eslint/js';
import typescript from '@typescript-eslint/eslint-plugin';
import typescriptParser from '@typescript-eslint/parser';
import prettier from 'eslint-plugin-prettier';
import prettierConfig from 'eslint-config-prettier';
export default [
js.configs.recommended,
{
files: ['src/**/*.ts'],
languageOptions: {
parser: typescriptParser,
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
project: './tsconfig.json'
},
globals: {
console: 'readonly',
process: 'readonly',
__dirname: 'readonly',
__filename: 'readonly',
Buffer: 'readonly'
}
},
plugins: {
'@typescript-eslint': typescript,
prettier: prettier
},
rules: {
...typescript.configs.recommended.rules,
...prettierConfig.rules,
'prettier/prettier': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-misused-promises': [
'error',
{
checksVoidReturn: false
}
]
}
},
{
ignores: ['dist/', 'node_modules/', '*.js', '!eslint.config.js']
}
];