kleros/kleros-v2

View on GitHub
subgraph/utils/index.ts

Summary

Maintainability
A
0 mins
Test Coverage

== should be ===
Open

      return value.toBool() == true ? "true" : "false";
Severity: Minor
Found in subgraph/utils/index.ts by tslint

Rule: triple-equals

Requires === and !== in place of == and !=.

Config

Two arguments may be optionally provided:

  • "allow-null-check" allows == and != when comparing to null.
  • "allow-undefined-check" allows == and != when comparing to undefined.
Examples
"triple-equals": true
"triple-equals": true,allow-null-check
"triple-equals": true,allow-undefined-check
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "allow-null-check",
      "allow-undefined-check"
    ]
  },
  "minLength": 0,
  "maxLength": 2
}

For more information see this page.

There are no issues that match your filters.

Category
Status