▲ 0 r/typescript
You are working on a large React project with multiple developers. You notice common inconsistencies like:
- Components missing default exports
console.logstatements left in production code- In Next.js, developers using
<img>tags instead ofnext/image - Hooks used without importing React
To solve this, if someone created a Node.js script that:
- Reads
package.jsonto detect the framework (React, Next.js, or React Native) - Scans all
.js,.jsx,.ts,.tsxfiles while respecting.gitignore - Applies framework-specific validation rules
- Reports all inconsistencies found
u/AdeptnessConfident63 — 8 days ago