@putout/plugin-gitignore
🐊Putout plugin helps with .gitignore
Last updated 2 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-gitignore 
SYNC missed versions from official npm registry.

@putout/plugin-gitignore NPM version

A .gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected.

(c) git-scm.com

????Putout plugin helps with .gitignore.

Install

npm i @putout/plugin-gitignore -D

Rules

Config

{
    "rules": {
        "gitignore/add": ["on", {
            "dismiss": [
                "*.swp",
                "coverage",
                "*.lock",
                "*.log"
            ]
        }],
        "gitignore/sort": "on"
    }
}

add

Adds .putoutcache, *.swp, .idea:

node_modules
+.putoutcache
+*.swp
+.idea

sort

❌ Example of incorrect code

node_modules
*.swp
yarn-error.log
yarn.lock
.idea
.DS_Store
deno.lock

coverage
.filesystem.json

✅ Example of correct code

.idea
.filesystem.json
.DS_Store

*.swp

yarn-error.log
yarn.lock
deno.lock

node_modules
coverage# sort

License

MIT

Current Tags

  • 7.0.4                                ...           latest (2 months ago)

18 Versions

  • 7.0.4                                ...           2 months ago
  • 7.0.3                                ...           2 months ago
  • 7.0.2                                ...           2 months ago
  • 7.0.1                                ...           2 months ago
  • 7.0.0                                ...           2 months ago
  • 6.0.0                                ...           2 years ago
  • 5.0.0                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.1.0                                ...           4 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.2.0                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |