oclif Support
archlint provides built-in support for oclif, the Open CLI Framework.
Features
- CLI Entry Points: Automatically recognizes command files as entry points.
- Hook Detection: Identifies oclif hooks to prevent false positives in dead code analysis.
- Architectural Rules: Provides presets that follow oclif's recommended directory structure.
Configuration
To enable oclif support, add it to your extends list:
yaml
extends:
- oclifDetection Logic
The oclif preset is automatically detected if:
package.jsoncontains@oclif/coreor@oclif/commandin dependencies.- The project has an
oclif.manifest.jsonfile.