u/AdeptnessConfident63

You are working on a large React project with multiple developers. You notice common inconsistencies like:

  • Components missing default exports
  • console.log statements left in production code
  • In Next.js, developers using <img> tags instead of next/image
  • Hooks used without importing React

To solve this, if someone created a Node.js script that:

  1. Reads package.json to detect the framework (React, Next.js, or React Native)
  2. Scans all .js.jsx.ts.tsx files while respecting .gitignore
  3. Applies framework-specific validation rules
  4. Reports all inconsistencies found
reddit.com
u/AdeptnessConfident63 — 8 days ago