Archived: This repository has been archived at v1.0. Development has moved to https://github.com/everydaydevopsio/typescript-linting-agent for v2.0+ with support for Cursor and Claude.
OpenCode agent for implementing TypeScript linting and code formatting following Everyday DevOps best practices.
This package provides an OpenCode subagent that automates the setup of TypeScript/JavaScript linting and formatting infrastructure in your projects. It follows the comprehensive guide from Everyday DevOps TypeScript Linting.
This agent requires OpenCode to be installed:
npm install -g opencode-aiInstall the agent globally:
npm install -g @everydaydevops/opencode-typescript-lintingThe postinstall script will automatically copy the agent configuration to ~/.config/opencode/agent/typescript-linting.md.
Install the agent just in a project:
npm install @everydaydevops/opencode-typescript-lintingThe postinstall script will automatically copy the agent configuration to .opencode/agent/typescript-linting.md.
Once installed, the typescript-linting subagent is available in any OpenCode session.
Primary OpenCode agents can automatically invoke this subagent for linting setup tasks.
You can directly invoke the agent using:
opencodeThen in the OpenCode session:
@typescript-linting help me set up linting for this project
The agent will:
- Install and configure ESLint with TypeScript support
- Set up Prettier for code formatting
- Configure Husky for Git hooks
- Set up lint-staged for pre-commit checks
- Create GitHub Actions workflow for CI linting
- Add helpful npm scripts for linting and formatting
For detailed information about the linting setup and best practices, visit:
MIT License - see LICENSE file for details.
Mark C Allen (@markcallen)