Giter Club home page Giter Club logo

Comments (6)

foray1010 avatar foray1010 commented on May 24, 2024 1

3.0.0 released🎉

from ignore-sync.

foray1010 avatar foray1010 commented on May 24, 2024

Why you need to copy the package's .gitignore to the root .gitignore? Both your /.gitignore and /packages/*/.gitignore will be resolved by git

from ignore-sync.

abdonrd avatar abdonrd commented on May 24, 2024

It's for Prettier & ESLint, not for git.

Because they only admit one ignore file :/

prettier/prettier#8048
eslint/eslint#9794

from ignore-sync.

foray1010 avatar foray1010 commented on May 24, 2024

The reason of this behavior is because ignore-sync treat those dependencies as template that are for copy and paste, so the path inside is not relative to the destination file

For example, /packages/a/.npmignore can copy the /.gitignore directly, without messing up the files with prefix ../../.

And user can define file structure like the following code, so that the ignore files can be stored in different directory

[local]
.config/commonignore

It works the same for remote config

[github/gitignore]
Node.gitignore
Global/macOS.gitignore

Therefore, it does not work the way that solve your problem.

With that being said, we can introduce a new tag like [relative] for this different behavior, if you wanna help coding it.

from ignore-sync.

abdonrd avatar abdonrd commented on May 24, 2024

Without having read your comment yet, I was just submitting this proposal: #301

from ignore-sync.

abdonrd avatar abdonrd commented on May 24, 2024

@foray1010 PR updated with your comments!

from ignore-sync.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.