Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df1479c

Browse files
armano2JamesHenry
authored andcommitted
fix(plugin-typescript): fix issues in member-ordering
1 parent db197f7 commit df1479c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/eslint-plugin-typescript/lib/rules/member-ordering.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,13 @@ module.exports = {
188188
* @private
189189
*/
190190
function getNodeType(node) {
191+
// TODO: add missing TSCallSignatureDeclaration
191192
switch (node.type) {
192193
case 'MethodDefinition':
193194
return node.kind;
194195
case 'TSMethodSignature':
195196
return 'method';
196-
case 'TSConstructSignature':
197+
case 'TSConstructSignatureDeclaration':
197198
return 'constructor';
198199
case 'ClassProperty':
199200
case 'TSPropertySignature':

0 commit comments

Comments
 (0)