requireDollarBeforejQueryAssignment

Require a $ before variable names that are jquery assignments.

Types: Boolean or String

Values: true or "ignoreProperties"

Example

"requireDollarBeforejQueryAssignment": true
Valid example for mode true
var $x = $(".foo");
var y = {
  $x: $(".bar")
};
Invalid example for mode true
var x = $(".foo");
var y = {
  x: $(".bar")
};
Valid example for mode ignoreProperties
var $x = $(".foo");
var y = {
  x: $(".bar")
};
Invalid example for mode ignoreProperties
var x = $(".foo");
Rule source
Test source