update description of js/suspicious-method-name-declaration

This commit is contained in:
Erik Krogh Kristensen
2019-10-02 15:01:25 +02:00
parent c0b7538cf0
commit 0c46e5c1a8

View File

@@ -1,7 +1,7 @@
/**
* @name Suspicious method name declaration
* @description A method having the name "function", "new", or "constructor"
* is usually caused by a programmer being confused about the TypeScript syntax.
* @description Declaring a class or interface method with a special name may cause a normal
* named method to be declared when a special type was expected.
* @kind problem
* @problem.severity warning
* @id js/suspicious-method-name-declaration