Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import tseslint from '@typescript-eslint/eslint-plugin';
import tsparser from '@typescript-eslint/parser';

export default [
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parser: tsparser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
globals: {
console: 'readonly',
process: 'readonly',
Buffer: 'readonly',
__dirname: 'readonly',
__filename: 'readonly',
global: 'readonly',
module: 'readonly',
require: 'readonly',
exports: 'readonly',
setTimeout: 'readonly',
clearTimeout: 'readonly',
setInterval: 'readonly',
clearInterval: 'readonly',
},
},
plugins: {
'@typescript-eslint': tseslint,
},
rules: {
// Basic ESLint rules
'no-console': 'warn',
'no-unused-vars': 'off', // Turn off base rule for TypeScript
'no-undef': 'off', // TypeScript handles this

// TypeScript-specific rules (from original .eslintrc.json)
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
'@typescript-eslint/explicit-function-return-type': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
},
},
{
files: ['**/*.js', '**/*.mjs'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
console: 'readonly',
process: 'readonly',
Buffer: 'readonly',
__dirname: 'readonly',
__filename: 'readonly',
global: 'readonly',
module: 'readonly',
require: 'readonly',
exports: 'readonly',
},
},
rules: {
'no-console': 'warn',
'no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
},
},
{
ignores: [
'node_modules/**',
'dist/**',
'build/**',
'src/mcp/generated/**',
'*.config.js',
'.eslintrc.js',
'logs/**',
],
},
];
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"dev": "tsx watch src/index.ts",
"build": "tsc && npm run copy-tools",
"copy-tools": "mkdir -p dist/mcp/generated && cp -r src/mcp/generated/tools dist/mcp/generated/ && cp src/mcp/generated/payload-tools.js dist/mcp/generated/",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --write \"src/**/*.ts\"",
"test": "echo \"Error: no test specified\" && exit 1",
"stdio": "tsx src/index.ts --stdio-only",
Expand All @@ -23,29 +23,29 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@types/express": "^5.0.0",
"@types/node": "^22.13.10",
"@types/express": "^5.0.3",
"@types/node": "^24.0.7",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.26.1",
"@typescript-eslint/parser": "^8.26.1",
"@typescript-eslint/eslint-plugin": "^8.35.0",
"@typescript-eslint/parser": "^8.35.0",
"depcheck": "^1.4.7",
"eslint": "^9.22.0",
"eslint-config-prettier": "^10.1.1",
"nodemon": "^3.1.9",
"prettier": "^3.5.3",
"ts-morph": "^25.0.1",
"eslint": "^9.30.0",
"eslint-config-prettier": "^10.1.5",
"nodemon": "^3.1.10",
"prettier": "^3.6.2",
"ts-morph": "^26.0.0",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tsx": "^4.19.3",
"typescript": "^5.8.2"
"tsx": "^4.20.3",
"typescript": "^5.8.3"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.7.0",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"payload": "^3.28.1",
"@modelcontextprotocol/sdk": "^1.13.2",
"dotenv": "^17.0.0",
"express": "5.1.0",
"payload": "^3.44.0",
"uuid": "^11.1.0",
"winston": "^3.17.0",
"zod": "^3.24.2"
"zod": "^3.25.67"
}
}
Loading