Skip to main content
Glama
eslint.config.mjs2.49 kB
import js from '@eslint/js'; import globals from 'globals'; import tseslint from 'typescript-eslint'; import prettier from 'eslint-config-prettier'; import prettierPlugin from 'eslint-plugin-prettier'; import importPlugin from 'eslint-plugin-import'; import unusedImports from 'eslint-plugin-unused-imports'; import preferArrow from 'eslint-plugin-prefer-arrow'; export default [ js.configs.recommended, ...tseslint.configs.recommended, prettier, { files: ['**/*.{js,mjs,cjs,ts,mts,cts}'], languageOptions: { globals: { ...globals.node, ...globals.es2021, }, parser: tseslint.parser, parserOptions: { project: './tsconfig.json', sourceType: 'module', ecmaVersion: 2021, }, }, plugins: { '@typescript-eslint': tseslint.plugin, prettier: prettierPlugin, import: importPlugin, 'unused-imports': unusedImports, 'prefer-arrow': preferArrow, }, rules: { '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-unused-vars': 'off', '@typescript-eslint/prefer-nullish-coalescing': 'error', '@typescript-eslint/prefer-optional-chain': 'error', 'unused-imports/no-unused-imports': 'error', 'unused-imports/no-unused-vars': [ 'warn', { vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_', }, ], 'import/order': [ 'error', { groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'], 'newlines-between': 'always', alphabetize: { order: 'asc', caseInsensitive: true, }, }, ], 'import/no-unresolved': 'off', 'prefer-arrow/prefer-arrow-functions': [ 'error', { disallowPrototype: true, singleReturnOnly: false, classPropertiesAllowed: false, }, ], 'prettier/prettier': 'error', }, settings: { 'import/resolver': { typescript: { alwaysTryTypes: true, project: './tsconfig.json', }, }, }, }, { ignores: ['dist/**/*', 'node_modules/**/*', 'eslint.config.mjs'], }, ];

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/drewdrewH/code-graph-context'

If you have feedback or need assistance with the MCP directory API, please join our Discord server