问题描述
所有Pro Javascript编码人员您好。 我已经开始最近使用ESlint。它用大约5000个文件创建节点文件夹的问题是正常的。将这些文件与项目一起保存在github存储库中是正常的做法吗? 谢谢您的回复!
解决方法
通常的事情是不检查与GitHub相关的任何构建。这是通过创建.gitignore
文件来完成的。如果在启动新项目时将项目类型设置为javascript
,则GitHub将自动创建此项目。
或者您可以自己添加以下内容。
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# next.js build output
.next
yarn.lock