Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit 6ce4cd8

Browse files
j-f1JamesHenry
authored andcommitted
Breaking: Properly categorize constructors with no body (#427)
1 parent e94ede3 commit 6ce4cd8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/convert.js

+2
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,8 @@ module.exports = function convert(config) {
10501050
result.accessibility = accessibility;
10511051
}
10521052

1053+
namespaceEmptyBodyFunctionForESLint(result.value);
1054+
10531055
break;
10541056

10551057
}

tests/lib/__snapshots__/typescript.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ Object {
733733
63,
734734
66,
735735
],
736-
"type": "FunctionExpression",
736+
"type": "TSEmptyBodyFunctionExpression",
737737
},
738738
},
739739
],

0 commit comments

Comments
 (0)