Documentation for Simbo's Packages
    Preparing search index...

    Function noRestrictedGlobalsRule

    • Creates a rule set with the no-restricted-globals rule based on the provided globals record and an optional allow-list of exceptions.

      Parameters

      • globals: Record<string, unknown> | string[]

        The globals to check against.

      • allowed: string[] | Set<string> = []

        The globals that are allowed to be used.

      Returns RulesRecord

      A rule set with the no-restricted-globals rule.