Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mustafakibar/d81fee406a03566190e4d265567fe535 to your computer and use it in GitHub Desktop.
Save mustafakibar/d81fee406a03566190e4d265567fe535 to your computer and use it in GitHub Desktop.
.gitignore for Rust, Next.js, React, React Native & TypeScript Projects (Generated by AI)
# ====================================================
# OS-Specific Files
# ====================================================
# macOS
.DS_Store
.AppleDouble
.LSOverride
# Windows
Thumbs.db
ehthumbs.db
Desktop.ini
# Linux temporary files
*~
# ====================================================
# Editor and IDE Files
# ====================================================
# Visual Studio Code
.vscode/
.history/
# JetBrains IDEs (IntelliJ, WebStorm, etc.)
.idea/
*.iml
*.iws
# Sublime Text
*.sublime-workspace
*.sublime-project
# Other editors (e.g., Vim swap files)
*.swp
*.swo
*.bak
# ====================================================
# Node.js / JavaScript / TypeScript
# ====================================================
# Node modules (Next.js, React, React Native, TypeScript projects)
node_modules/
# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Package lock files (optional: uncomment if you want to ignore)
# package-lock.json
# yarn.lock
# Build outputs (Next.js and React build artifacts)
.next/
.out/
build/
dist/
# Static exports (Next.js)
export/
# ====================================================
# Environment Variables & Configuration Files
# ====================================================
# Environment variable files
.env
.env.*
!.env.example # Include example file for reference
# Local environment files (machine-specific settings)
.env.local
.env.*.local
# ====================================================
# Rust
# ====================================================
# Cargo build output
/target/
# Cargo.lock (for libraries, you might want to check this in)
# Cargo.lock
# ====================================================
# React Native
# ====================================================
# React Native specific folders
# iOS build folder
ios/build/
# Android build folder
android/app/build/
# ====================================================
# Miscellaneous
# ====================================================
# Temporary and cache files
.cache/
tmp/
temp/
# Log files
*.log
# Docker related files
docker-compose.override.yml
# Process ID files and seed files
*.pid
*.seed
# Backup files
*.backup
*.bak
# Archive files
*.zip
*.tar.gz
*.rar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment