Convert textlint's messages to CodeMirror lint annotations. Current stable version is 1.0.0. This package is a small utility with no active release cadence (last release is original). It provides a simple function to transform textlint result objects into CodeMirror-compatible lint objects, mapping severity numbers (1 warning, 2 error) and converting from 1-based line/column to 0-based positions. It is a niche tool for integrating textlint linting output into CodeMirror editors.
npm install textlint-message-to-codemirrorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to convert a single textlint message object into a CodeMirror lint annotation using CommonJS require and logging the result.
Verify that input line/column are 1-based. The function handles conversion internally.
Understand that the range length is always 1 character. For multi-character ranges, you need to handle yourself or use a different approach.
Use require('textlint-message-to-codemirror') or configure bundler to handle CommonJS.Run 'npm install textlint-message-to-codemirror' or add it to package.json dependencies.
No dependency data recorded yet.