Skip to content

Commit

Permalink
Remove misleading comment
Browse files Browse the repository at this point in the history
This repository doesn't use the `no-prototype-methods` rule that is
managed with `local-rules` plugin, so the comments make no sense.

ESLint should really throw an error here...
  • Loading branch information
mroderick committed Oct 22, 2020
1 parent a8e7af4 commit d07b735
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fake-timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ module.exports = function every(obj, fn) {
var pass = true;

try {
/* eslint-disable-next-line local-rules/no-prototype-methods */
obj.forEach(function() {
if (!fn.apply(this, arguments)) {
// Throwing an error is the only way to break `forEach`
Expand Down Expand Up @@ -205,7 +204,6 @@ module.exports = copyPrototype(Array.prototype);
var call = Function.call;

module.exports = function copyPrototypeMethods(prototype) {
/* eslint-disable local-rules/no-prototype-methods */
return Object.getOwnPropertyNames(prototype).reduce(function(result, name) {
// ignore size because it throws from Map
if (
Expand Down Expand Up @@ -283,7 +281,6 @@ module.exports = function typeOf(value) {

function valueToString(value) {
if (value && value.toString) {
/* eslint-disable-next-line local-rules/no-prototype-methods */
return value.toString();
}
return String(value);
Expand Down

0 comments on commit d07b735

Please sign in to comment.