question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A rule to disallow properties from being called on an object [$15]

See original GitHub issue

We want to be able to lint that we don’t check in code in our tests with

describe.(only|skip)
it.(only|skip)
assert.equal // we enforce ===, so we require assert.strictEqual

and a few others.

It would be nice to have a customizable rule like http://eslint.org/docs/rules/no-restricted-modules where we can configure it with the name of the object (if any), the function name, and an optional message to use to tell the user if that function is called.

<bountysource-plugin>

There is a $15 open bounty on this issue. Add to the bounty at Bountysource. </bountysource-plugin>

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:36 (22 by maintainers)

github_iconTop GitHub Comments

5reactions
TheSaviorcommented, Sep 21, 2016

@willklein and I decided on Girls Who Code instead.

screen shot 2016-09-21 at 10 36 54 am screen shot 2016-09-21 at 10 35 33 am

(It’s amazing how many different companies took fees out of this)

1reaction
TheSaviorcommented, Aug 30, 2016

I’ve gone ahead and finished up the work that @willklein started. There is light at the end of the tunnel!

Read more comments on GitHub >

github_iconTop Results From Across the Web

no-obj-calls - ESLint - Pluggable JavaScript Linter
This rule disallows calling the Math , JSON , Reflect , Atomics and Intl objects as functions. This rule also disallows using these...
Read more >
How to avoid no-param-reassign when setting a property on a ...
Modifying a property of an object that was passed as a parameter doesn't change the object reference, so it shouldn't run into the...
Read more >
Rule 71.1. Condemning Real or Personal Property
When a defendant whose address is known resides within the United States or a territory subject to the administrative or judicial jurisdiction of...
Read more >
Properties - C# Programming Guide - Microsoft Learn
Properties enable a class to expose a public way of getting and setting values, while hiding implementation or verification code. A get property...
Read more >
JavaScript Object Destructuring, Spread Syntax, and the Rest ...
For example, if we want to get the value of the name and age properties from the user object, we can do this:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found