A rule to disallow properties from being called on an object [$15]
See original GitHub issueWe 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:
- Created 8 years ago
- Comments:36 (22 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@willklein and I decided on Girls Who Code instead.
(It’s amazing how many different companies took fees out of this)
I’ve gone ahead and finished up the work that @willklein started. There is light at the end of the tunnel!