A CodeMirror addon that provides a UI for applying quick fixes to lint issues, such as those reported by ESLint. Version 1.1.0 is the latest stable release; the package is actively maintained but with low release cadence. It ships TypeScript definitions and integrates with CodeMirror's built-in lint addon. Key differentiator: it adds a fix button inline next to lint markers, allowing users to apply automatic fixes without context menu. Built specifically for CodeMirror 5.x and requires the core codemirror package.
npm install codemirror-addon-lint-fixNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Imports CodeMirror core, lint addon, and lintFix function; attaches fix UI to the editor instance.
Import 'codemirror/addon/lint/lint.js' and set lint: true in options.
Call lintFix(editor) after editor instance is created and lint is configured.
Use import { lintFix } from 'codemirror-addon-lint-fix'.Ensure lint: true is passed to CodeMirror options and call lintFix after editor creation.
Add import 'codemirror/addon/lint/lint.js' before using lintFix.