Files
Fahreddin Özcan 5e11d358af CTX7-855: TypeScript SDK (#1061)
* 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

* feat: init ts sdk

* feat: add commands and http client

* 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

* finalize sdk with tests and proper types

* address reviews

* add client tests

* feat: use env var automatically

* add docs

* remove docs changes (moving to separate PR)

* remove docs

* update build config with tsup

* cleanup comments

* fix error hangling on http client

* minor fixes

* address reviews

* add txt pagination feature

* remove unnecessary types

* update default format

* cleanup

* add mcp lint command

* update format scripts

* fix: update eslint and tsconfig with update

* add readme

* make default format json

* change docType to mode

* update basic usage

* update changeset
2025-11-28 16:16:30 +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",
},
}
);