Skip to content

Commit 9e3ba8d

Browse files
authored
chore: add linting & formatting on staged files before commit (#11)
1 parent 807bdcb commit 9e3ba8d

File tree

10 files changed

+59
-42
lines changed

10 files changed

+59
-42
lines changed

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
dist
3+
4+
**/node_modules
5+
**/dist

docs/api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ Create a new Tsky instance.
1313
```ts
1414
import { Tsky } from 'tsky'
1515

16-
const app = new AppBskyNS(); // TODO
17-
const tsky = new Tsky(app);
16+
const app = new AppBskyNS() // TODO
17+
const tsky = new Tsky(app)
1818
```
1919

2020
### `tsky.profile(did: string): Promise<Profile>`
2121

2222
Get a profile by DID.
2323

2424
```ts
25-
const profile = await tsky.profile('did:plc:giohuovwawlijq7jkuysq5dd');
25+
const profile = await tsky.profile('did:plc:giohuovwawlijq7jkuysq5dd')
2626

27-
console.log(profile.handle);
27+
console.log(profile.handle)
2828
```

docs/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ outline: deep
44

55
# Examples
66

7-
TODO: Add examples here
7+
TODO: Add examples here

docs/getting-started.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@ $ bun add -D tsky
2626

2727
:::
2828

29-
3029
## Usage
3130

3231
```ts
3332
import { Tsky } from 'tsky'
3433

34+
const app = new AppBskyNS() // TODO
35+
const tsky = new Tsky(app)
3536

36-
const app = new AppBskyNS(); // TODO
37-
const tsky = new Tsky(app);
38-
39-
const profile = await tsky.profile('did:plc:giohuovwawlijq7jkuysq5dd');
37+
const profile = await tsky.profile('did:plc:giohuovwawlijq7jkuysq5dd')
4038

41-
console.log(profile.handle);
39+
console.log(profile.handle)
4240
```

docs/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@ features:
2828
icon: ☁️
2929
details: Like a walk on the clouds
3030
---
31-
File renamed without changes.

package.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,21 @@
1515
"docs:preview": "pnpm run --filter tsky-docs preview",
1616
"format": "biome check --write .",
1717
"format:check": "biome check",
18-
"lint": "pnpm --filter tsky run lint",
19-
"lint:fix": "pnpm --filter tsky run lint:fix"
18+
"lint": "eslint ./packages ./docs",
19+
"lint:fix": "eslint . --fix"
2020
},
2121
"devDependencies": {
22-
"@biomejs/biome": "^1.9.4"
22+
"@antfu/eslint-config": "^3.11.2",
23+
"@biomejs/biome": "^1.9.4",
24+
"@eslint/js": "^9.15.0",
25+
"eslint": "^8.57.1",
26+
"eslint-plugin-import": "^2.25.2",
27+
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
28+
"eslint-plugin-promise": "^6.0.0",
29+
"nano-staged": "^0.8.0",
30+
"typescript-eslint": "^8.16.0"
31+
},
32+
"nano-staged": {
33+
"*.{js,ts,cjs,mjs}": ["biome check --write --"]
2334
}
2435
}

packages/core/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,9 @@
99
"test:typescript": "tsc --noEmit"
1010
},
1111
"devDependencies": {
12-
"@antfu/eslint-config": "^3.11.2",
1312
"@atproto/api": "^0.13.18",
14-
"@eslint/js": "^9.15.0",
15-
"eslint": "^8.57.1",
16-
"eslint-plugin-import": "^2.25.2",
17-
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
18-
"eslint-plugin-promise": "^6.0.0",
1913
"globals": "^15.12.0",
2014
"tsx": "^4.19.2",
21-
"typescript": "^5.7.2",
22-
"typescript-eslint": "^8.16.0"
15+
"typescript": "^5.7.2"
2316
}
2417
}

pnpm-lock.yaml

Lines changed: 30 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
packages:
22
- packages/*
33
- docs/
4-

0 commit comments

Comments
 (0)