Skip to content

Commit

Permalink
chore: Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Dec 12, 2023
1 parent e6e268b commit fd3c4b6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ docs/venice.oas.json
dist/
# Maybe do not ignore examples? We want them to be nice and consistent after all

.next
.next
# Website should have its own lint settings
website
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"parserOptions": {"ecmaVersion": "latest", "sourceType": "module"},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"root": true,
"settings": {},
"plugins": [
Expand Down
15 changes: 13 additions & 2 deletions examples/example-kitchensink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,18 @@ void twilio.api_v2010
},
})
.then((r) => console.log(r.data))
// ^?
// ^? (parameter) r: {
// data: {
// body?: string | null | undefined;
// num_segments?: string | null | undefined;
// direction?: "inbound" | "outbound-api" | "outbound-call" | "outbound-reply" | undefined;
// from?: string | ... 1 more ... | undefined;
// ... 15 more ...;
// subresource_uris?: Record<...> | ... 1 more ... | undefined;
// };
// error?: undefined;
// response: Response;
// }
.catch(console.log)

const client = Twilio(accountSid, authToken)
Expand All @@ -70,7 +81,7 @@ client.messages
to: '+15558675310',
})
.then((message) => console.log(message.sid))
// ^?
// ^? (parameter) message: MessageInstance
.catch(console.log)

// Other examples
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"typecheck": "tsc --project ./ --noEmit",
"lint": "eslint --ext .js,.ts,.tsx --cache .",
"lint": "eslint --ext .ts,.tsx --cache .",
"test::ci": "pnpm run test --ci --forceExit --detectOpenHandles --runInBand",
"test::debug": "node --inspect-brk $(pnpm bin)/jest --runInBand --watch",
"test::watch": "pnpm run test --watch",
Expand Down

0 comments on commit fd3c4b6

Please sign in to comment.