- .env.example: полный шаблон, защита секретов - .gitignore: явное исключение .env.* и секретов - layout.tsx: XSS — заменён dangerouslySetInnerHTML на next/script для SW - ESLint: no-console error (allow warn/error), ignore scripts/ - scripts/remove-console-logs.js: очистка console.log без glob - backend/routes/modules: README с планом рефакторинга крупных файлов - SECURITY.md: гид по секретам, XSS, CORS, auth, линту - .husky/pre-commit: запуск npm run lint + прочие правки приложения и бэкенда Co-authored-by: Cursor <cursoragent@cursor.com>
60 lines
589 B
Plaintext
60 lines
589 B
Plaintext
# Dependencies
|
|
node_modules/
|
|
.pnp
|
|
.pnp.js
|
|
|
|
# Build
|
|
.next/
|
|
out/
|
|
build/
|
|
dist/
|
|
|
|
# Python
|
|
__pycache__/
|
|
*.py[cod]
|
|
*.egg-info/
|
|
.pytest_cache/
|
|
htmlcov/
|
|
.coverage
|
|
*.egg
|
|
|
|
# Environment & secrets (никогда не коммитить)
|
|
.env
|
|
.env.local
|
|
.env.development
|
|
.env.production
|
|
.env.*.local
|
|
!.env.example
|
|
*.pem
|
|
*.key
|
|
certs/
|
|
|
|
# IDE
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Logs
|
|
*.log
|
|
npm-debug.log*
|
|
|
|
# Lock files (optional — uncomment if needed)
|
|
# package-lock.json
|
|
|
|
# Certificates (ФГИС РЭВС)
|
|
certs/
|
|
*.pem
|
|
*.key
|
|
|
|
# Backups
|
|
backups/
|
|
|
|
# Storage
|
|
storage/
|
|
attachments/
|