Skip to content

Whitelist dotfiles instead of blacklisting? #8012

Closed
@claudiorodriguez

Description

@claudiorodriguez

I was wondering, after seeing a new PR that adds .idea to the .gitignore, and actually taking a look at the file - seeing as how so many people with so many different IDEs and tools which generate dotfiles contribute to node, wouldn't it make more sense to whitelist the dotfiles that we want git to version, and blacklist all others? Or would this break something I'm not aware of?

I mean something like

.*
!.editorconfig
!.eslintignore
!.eslintrc
!.gitattributes
!.etc etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    metaIssues and PRs related to the general management of the project.questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions