A CodeMirror addon that integrates ESLint linting into CodeMirror editors. Version 1.0.1 is the latest stable release. It provides an 'eslint-lint.js' script that hooks into CodeMirror's lint addon, enabling real-time JavaScript linting with ESLint. Simple setup: include ESLint, CodeMirror core, JavaScript mode, lint addon, and the eslint-lint.js script. Useful for web-based code editors where you want to show lint errors inline. Note: requires a globally available 'eslint' object (from eslint.js). Currently unmaintained but functional for basic use.
npm install codemirror-lint-eslintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal HTML page demonstrating CodeMirror editor with ESLint linting.
Load eslint.js before eslint-lint.js.
Use a script tag from eslint.org or bundle globally.
Migrate to CodeMirror 6 and @codemirror/lang-javascript with eslint integration.
Add <script src="https://eslint.org/js/app/eslint.js"></script> before eslint-lint.js
Include CodeMirror core script (codemirror.js) before using CodeMirror
Use the correct URL for eslint.js (e.g., https://eslint.org/js/app/eslint.js)