Files
upstash__context7/packages/mcp/eslint.config.js
T
Fahreddin Özcan 6255e26677 CTX7-854: Migrate to pnpm monorepo (#1058)
* init sdk and monorepo

* init sdk and monorepo

* comment cleanup

* remove bun.lock

* cleanup: remove sdk package and deps

* update tsconfigs

* chore: add temp changelog

* ci: update scripts

* ci: update github workflows

* fmt: workflows

* fix: search libraries response type

* ci: update pack-mcpb script

* update keywords and author

* update eslint config for mcp

* include license and readme in build

* update release.yaml

* add readme symlink

* include readme in mcp package

* chore: add canary release workflow and update configs

* chore: format files

* ci: add changeset check workflow

* canary release trigger

* ci: login to npm before release

* bump mcp version on package

* remove pr trigger from canary release

* ci: remove package input

* add mcp lint command

* update format scripts
2025-11-28 15:18:33 +03:00

48 lines
1.3 KiB
JavaScript

import { defineConfig } from "eslint/config";
import tseslint from "typescript-eslint";
import eslintPluginPrettier from "eslint-plugin-prettier";
export default defineConfig(
{
// Base ESLint configuration
ignores: ["node_modules/**", "build/**", "dist/**", ".git/**", ".github/**"],
},
{
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
ecmaVersion: 2020,
sourceType: "module",
parser: tseslint.parser,
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: import.meta.dirname,
},
globals: {
// Add Node.js globals
process: "readonly",
require: "readonly",
module: "writable",
console: "readonly",
},
},
// Settings for all files
linterOptions: {
reportUnusedDisableDirectives: true,
},
plugins: {
"@typescript-eslint": tseslint.plugin,
prettier: eslintPluginPrettier,
},
rules: {
// TypeScript recommended rules
...tseslint.configs.recommended.rules,
// TypeScript rules
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-explicit-any": "warn",
// Prettier integration
"prettier/prettier": "error",
},
}
);