Skip to content

Commit

Permalink
chore: fix lint, knip, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Feb 6, 2023
1 parent f901bec commit bbbe7e5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<h1 align="center">TypeScript API Tools</h1>

<p align="center">Utility functions for working with TypeScript's API. Based on the wonderful [ajafff/tsutils](/~https://github.com/ajafff/tsutils).</p>
<p align="center">
Utility functions for working with TypeScript's API.
Based on the wonderful [ajafff/tsutils](/~https://github.com/ajafff/tsutils).
</p>

<p align="center">
<a href="#contributors" target="_blank">
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"@vitest/coverage-istanbul": "^0.28.0",
"chalk": "^5.2.0",
"cspell": "^6.19.2",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
Expand Down
2 changes: 0 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/forEachComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function forEachComment(
Comment ranges between tokens are parsed without the need of a scanner.
forEachTokenWithWhitespace does intentionally not pay attention to the correct comment ownership of nodes as it always
scans all trivia before each token, which could include trailing comments of the previous token.
Comment onwership is done right in this function*/
Comment ownership is done right in this function*/
const fullText = sourceFile.text;
const notJsx = sourceFile.languageVariant !== ts.LanguageVariant.JSX;
return forEachToken(
Expand Down

0 comments on commit bbbe7e5

Please sign in to comment.