UNPKG

mcp-newsapi

Version:

MCP Server for accessing News API endpoints.

50 lines (48 loc) 1.49 kB
import js from '@eslint/js'; import tseslintPlugin from '@typescript-eslint/eslint-plugin'; import tseslintParser from '@typescript-eslint/parser'; import importPlugin from 'eslint-plugin-import'; import prettierConfig from 'eslint-config-prettier'; import prettierPlugin from 'eslint-plugin-prettier'; import globals from 'globals'; export default [ js.configs.recommended, { files: ['**/*.ts'], languageOptions: { parser: tseslintParser, globals: { ...globals.node, }, parserOptions: { project: './tsconfig.json', tsconfigRootDir: import.meta.dirname, }, }, plugins: { '@typescript-eslint': tseslintPlugin, import: importPlugin, prettier: prettierPlugin, }, rules: { ...tseslintPlugin.configs.recommended.rules, '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/explicit-module-boundary-types': 'off', "arrow-body-style": ["warn", "as-needed"], 'func-style': ['error', 'expression', { allowArrowFunctions: true }], 'prefer-arrow-callback': 'error', "import/no-unresolved": "off", "import/named": "error", "import/default": "error", "import/namespace": "error", "import/no-self-import": "error", "import/no-cycle": "warn", "import/no-useless-path-segments": "warn", "prettier/prettier": "error" }, }, prettierConfig, { ignores: ['node_modules/**', 'build/**'], }, ];