Skip to content

Commit 91299c9

Browse files
committed
fix repo linting
1 parent f0990ac commit 91299c9

5 files changed

Lines changed: 90 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- run: pnpm install --frozen-lockfile
3030

31-
# - run: pnpm lint
31+
- run: pnpm lint
3232

3333
- run: pnpm build
3434

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# compiled output
22
/dist/
3-
3+
44
# misc
55
!.*
66
.*/
@@ -13,3 +13,4 @@ pnpm-lock.yaml
1313
CHANGELOG.md
1414
README.md
1515
RELEASE.md
16+
CONTRIBUTING.md

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"eslint-plugin-unicorn": "^59.0.1",
7777
"globals": "^16.2.0",
7878
"prettier": "3.7.3",
79-
"prettier-plugin-jsdoc": "^1.3.2",
79+
"prettier-plugin-jsdoc": "^1.7.0",
8080
"release-plan": "^0.11.0",
8181
"typescript": "^5.8.3",
8282
"typescript-eslint": "^8.34.0",

pnpm-lock.yaml

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

src/parse/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ function findCorrectCommentBlockIndex(
4646
(commentStart === start + 7 && commentEnd === end - 1)
4747
);
4848
});
49-
5049
}
5150

5251
/** Traverses the AST and replaces the transformed template parts with other AST */
@@ -63,7 +62,10 @@ function convertAst(ast: File, templates: Template[]): void {
6362
case 'BlockStatement':
6463
case 'ObjectExpression':
6564
case 'StaticBlock': {
66-
const [start, end] = [typescript.locStart(node), typescript.locEnd(node)];
65+
const [start, end] = [
66+
typescript.locStart(node),
67+
typescript.locEnd(node),
68+
];
6769

6870
const templateIndex = templates.findIndex((template) => {
6971
const { utf16Range } = template;

0 commit comments

Comments
 (0)