Skip to content

🚀 Feature: wrap eslint global ignores in globalIgnores() helper #2321

@cylewaitforit

Description

@cylewaitforit

Feature Request Checklist

Overview

Eslint has a globalIgnores() helper that can be used. By using the helper it protects against some edge cases where global ignores can become local ignores if something else gets added to the object. Using the helper also improves the experience in the eslint config inspector as it allows for passing a name as a second parameter.

- { ignores: ["lib", "node_modules", "pnpm-lock.yaml"] },
+ globalIgnores(["lib", "node_modules", "pnpm-lock.yaml"] , "Global Ignores"),

Additional Info

See: Introducing the globalIgnores() helper

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send a pull request to resolve this!type: featureNew enhancement or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions