1.0.8 • Published 3 months ago

@suha.thalib/code-shield v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

🚀 @suha.thalib/code-shield

Zero-Config Code Quality Toolkit for Modern Projects

npm version License: MIT

🔥 Bye-Bye Config Headaches!

⚡ Quick Start

npx @suha.thalib/code-shield@latest

One Command to Rule All Code Quality

Tired of...
🔧 Endless setup for new projects?
🤬 Style debates wasting PR time?
🚨 "Oops" commits slipping through?

💔 We've All Been There...

Developer Frustration 😤Solution 💡
🚨 "Why does CI keep failing?!"🐶 Husky Guard: Blocks bad commits before they reach CI/CD
💥 "My IDE formatting broke everything!"🎨 Prettier Magic: Auto-format on save (no more manual cleanup)
😱 "Who committed this broken code?!"🛡️ ESLint Shield: Catches errors pre-commit
🥊 "Tabs vs spaces debate round 47..."Prettier Peace Treaty: Auto-formats code - team debates = extinct

▼ Click to expand why this matters ▼

  1. Save 3-5 hours/week on code reviews arguing about style
  2. Reduce CI failures by 80%+ with pre-commit checks
  3. Onboard new devs faster with consistent standards

🛠 What You Get in 30 Seconds

  • ✅ ESLint - Catch bugs before runtime
  • ✅ Prettier - Auto-format on save (no more manual cleanup)
  • ✅ Husky - Guard commits like a watchdog 🐶

🚀 Get Started in 10 Seconds

Run in any JS project root:

npx @suha.thalib/code-shield@latest

Commit like a pro:

git add .
git commit -m "feat: add magic"  # Husky auto-fixes + checks!

🚀 Benefits You Get Immediately

🎉 What Happens Next?

✅ Auto-Fix Mode: Husky runs ESLint & Prettier to fix issues automatically

🛡️ Quality Gate: Commits get blocked only if unfixable errors remain

⚡ Instant Feedback: See results in your terminal in 2-3 seconds

🌟 What This Gives You

FeatureSuperpowerSaves You From
🐞 Bug NinjaFinds undefined vars before runtime"Why is this broken?!" debugging
🎨 Style SorcererAuto-formats code on saveManual indentation wars
🐶 Commit WatchdogBlocks bad pushes pre-CIEmbarrassing build failure emails
Flash LinterOnly checks changed filesWaiting 10min for full repo linting

❓ FAQ

Q: Does this work with TypeScript?
A: Yes! Just install @typescript-eslint/parser separately.

Q: Can I use this with Angular projects?
A: Absolutely! Just follow these steps:
1. Run npx @suha.thalib/code-shield@latest
2. Install Angular-specific dependencies:

npm install --save-dev @angular-eslint/eslint-plugin @typescript-eslint/parser

Extend Angular rules in your .eslintrc.json:

   {
     "extends": ["plugin:@angular-eslint/recommended"]
   }

Detailed Angular setup guide →

Q: Can I override the default configs?

A: Of course! Your rules always take precedence:

Q: How do I disable a rule temporarily?

A: Add comments above the code:

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const unusedVar = 'test';

👥 Contribute & Connect

Found a bug? Want to improve something?

  1. 🔱 Fork the repo
  2. 🛠 Create a PR
  3. Become a hero 🦸

Let's Connect!

Made with ❤️ by Suha Thalib K K

Gmail LinkedIn GitHub

Your feedback fuels more awesome tools! 🚀

1.0.2

4 months ago

1.0.8

3 months ago

1.0.7

3 months ago

1.0.6

3 months ago

1.0.5

3 months ago

1.0.4

3 months ago

1.0.3

3 months ago

1.0.1

4 months ago

1.0.0

4 months ago