Skip to content

no-array-sort should trigger only with Array.prototype.sort() #2744

@jonataswalker

Description

@jonataswalker
import { type Collection } from 'mongodb'

const collection = await this.getColection()
const docs = await collection.find({ id }).sort({ expireAt: -1 }).limit(1).toArray()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtypesIssues that happen in TypeScript or that require types

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions