Skip to content

Commit 7260640

Browse files
committed
Pre commit and lint action
1 parent 80855a0 commit 7260640

File tree

5 files changed

+9943
-3
lines changed

5 files changed

+9943
-3
lines changed

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '22'
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Run linter
25+
run: npm run lint
26+
27+
- name: TypeScript check
28+
run: npm run build

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ Load it:
120120

121121
```ts
122122
import { MCPClient } from 'mcp-use'
123+
123124
const client = MCPClient.fromConfigFile('./mcp-config.json')
124125
```
125126

0 commit comments

Comments
 (0)