OpenCode plugin (v0.1.0) that automatically configures ESLint as formatter and LSP when an ESLint config is detected in the project. It detects a wide range of ESLint config files, disables Prettier to avoid conflicts, and sets up ESLint as the formatter (with --fix) and the vscode-eslint-language-server for LSP. Differentiators: zero-config setup, seamless integration with OpenCode. Release cadence: initial release.
npm install opencode-eslint-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an ESLint formatter plugin for OpenCode. The plugin auto-detects ESLint config files and adjusts formatter and LSP settings.
Ensure yarn is available or modify the command in the plugin options (currently not exposed). Consider installing eslint and yarn locally.
After plugin runs, manually re-enable Prettier in OpenCode config if needed.
Install the language server: npm install -g vscode-eslint-language-server or add as dev dependency.
Use only within OpenCode environment.
Run: npm install -g vscode-eslint-language-server or add it to your project's devDependencies.
Install eslint as a dev dependency and ensure yarn is used (or switch to npm by modifying the command manually).
Use import { createEslintFormatterPlugin } from 'opencode-eslint-formatter'.