$ show rizowski/eslint-watch
Eslint Watch is a command-line tool that wraps ESLint to add file watching capabilities. It provides a CLI interface that forwards most options to ESLint while adding its own options like --watch, --changed, and --clear. The architecture is modular, with separate modules for option parsing, command handling, ESLint interaction, and file watching. The tool uses chokidar for file system events and keypress for keyboard input to trigger manual re-lints. It demonstrates solid engineering practices with a clear separation of concerns and a reusable option merging pattern.
The LLM identified 1 files worth highlighting for reuse:
This module handles the merging of esw-specific command line options with those of the wrapped tool (eslint) by parsing the wrapped tool's help text. It deduplicates options, provides a parser for the combined options, and converts the parsed options into flags suitable for passing to the wrapped tool. It demonstrates non-obvious skill in dynamically extending a CLI's options and is isolated enough to be reused for wrapping other CLI tools with minimal modification (by making the wrapped tool's option retrieval injectable).