Skip to content

Commit 77f4954

Browse files
committed
chore: add missing semicolon
1 parent 3376845 commit 77f4954

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

rules/prefer-class-fields.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const addOrReplaceClassFieldDeclaration = (
8787
if (alreadyExistingDeclaration) {
8888
return fixer.replaceText(
8989
alreadyExistingDeclaration,
90-
`${propertyName} = ${propertyValue}`,
90+
`${propertyName} = ${propertyValue};`,
9191
);
9292
}
9393

test/snapshots/prefer-class-fields.mjs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Generated by [AVA](https://avajs.dev).
165165
166166
`␊
167167
1 | class Foo {␊
168-
2 | foo = 'foo'␊
168+
2 | foo = 'foo';
169169
3 | constructor() {␊
170170
4 | }␊
171171
5 | }␊
-7 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)