@putout/plugin-gitignore
v7.0.4
Published
šPutout plugin helps with .gitignore
Maintainers
Readme
@putout/plugin-gitignore 
A
.gitignorefile 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 -DRules
Config
{
"rules": {
"gitignore/add": ["on", {
"dismiss": [
"*.swp",
"coverage",
"*.lock",
"*.log"
]
}],
"gitignore/sort": "on"
}
}add
Adds .putoutcache, *.swp, .idea:
node_modules
+.putoutcache
+*.swp
+.ideasort
ā 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# sortLicense
MIT
