kleros/kleros-v2

View on GitHub
web/src/context/AtlasProvider.tsx

Summary

Maintainability
A
0 mins
Test Coverage

object access via string literals is disallowed
Open

        (error instanceof GraphQLError && error?.extensions?.["code"] === "UNAUTHENTICATED")
Severity: Minor
Found in web/src/context/AtlasProvider.tsx by tslint

Rule: no-string-literal

Forbids unnecessary string literal property access. Allows obj["prop-erty"] (can't be a regular property access). Disallows obj["property"] (should be obj.property).

Rationale

If --noImplicitAny is turned off, property access via a string literal will be 'any' if the property does not exist.

Notes
  • Has Fix

Config

Not configurable.

Examples
"no-string-literal": true

For more information see this page.

There are no issues that match your filters.

Category
Status