Skip to content

Commit 3face10

Browse files
authored
feat: add eslint and format typescript with prettier (modelcontextprotocol#1782)
* feat: eslint to match typescript sdk * feat: prettier config to match typescript-sdk * fix: schemas
1 parent 0f0b48d commit 3face10

File tree

6 files changed

+1634
-82
lines changed

6 files changed

+1634
-82
lines changed

.prettierrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"printWidth": 140,
3+
"tabWidth": 4,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"trailingComma": "none",
8+
"bracketSpacing": true,
9+
"bracketSameLine": false,
10+
"proseWrap": "always",
11+
"arrowParens": "avoid",
12+
"overrides": [
13+
{
14+
"files": "**/*.md",
15+
"options": {
16+
"printWidth": 280
17+
}
18+
}
19+
]
20+
}

eslint.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
import eslintConfigPrettier from "eslint-config-prettier/flat";
4+
import { defineConfig } from "eslint/config";
5+
6+
export default defineConfig([
7+
eslint.configs.recommended,
8+
...tseslint.configs.recommended,
9+
eslintConfigPrettier,
10+
]);

0 commit comments

Comments
 (0)