lynt
lynt copied to clipboard
Auto-detect if the user needs react, flow, or typescript support
Instead of the user needing to pass --react, --typescript, or --flow flags to lynt, I could detect this automatically.
- Add React support/rules if the user has
reactin theirpackage.json - Add TypeScript support/rules if the user has a
tsconfig.jsonfile in their root project folder - Add Flow support/rules if the user has a
.flowconfigfile in their root project folder