SIGN IN SIGN UP

chore: add a instanceof/contains restriction lint (#8131)

* add a instanceof lint

* fix lint

* fix wrong toContain migrations

`expect(!el.classList).toContain('x')` asserts the opposite of the
original `expect(!el.classList.contains('x')).toBeTruthy()` — the
negation has to move to the matcher.

`LngLatBounds.contains()` is a geometry predicate, not collection
membership, so `expect(llb).toContain(ll)` never worked; reverted.

Also migrates the multi-line `classList.contains` assertions the new
rule flagged in marker and geolocate tests.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KKy5jSQhjQbiUmCSfcW95P

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
F
Frank Elsinga committed
0e4843d920db644584c3e37d02c233d986ce96cb
Parent: a5dd332
Committed by GitHub <noreply@github.com> on 8/9/2026, 8:33:04 PM