You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rule currently warns for methods defined on classes that return constant values, however this isn't the ideal behavior because refactoring those methods to use lodash would produce some weird looking code.
In the following example both methods will be flagged:
classFoo{staticsomething(){returntrue;}// other methods somethingElse(){return10;}}
the "fixed" code would look like:
classFoo{// other methods }Foo.something=_.constant(true);Foo.prototype.something=_.constant(10);
which isn't ideal
The text was updated successfully, but these errors were encountered:
The rule currently warns for methods defined on classes that return constant values, however this isn't the ideal behavior because refactoring those methods to use lodash would produce some weird looking code.
In the following example both methods will be flagged:
the "fixed" code would look like:
which isn't ideal
The text was updated successfully, but these errors were encountered: