A Vue.js component providing an embedded code editor for ESLint playgrounds, built on Monaco Editor. Current stable version is 1.1.0, released with Quick Fix support for autofixes and suggestions. The package integrates ESLint linting directly in the editor, supports multiple languages via the `language` prop, and offers preprocessing/postprocessing hooks. It requires Vue 2.x (not Vue 3) and Monaco Editor as peer dependencies. Differentiators include deep ESLint integration and a dedicated component for Vue-based playgrounds.
npm install vue-eslint-editorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage of vue-eslint-editor with Vue 2, registering the component and passing code, language, and linter props.
Use with Vue 2 or find an alternative for Vue 3.
Ensure monaco-editor peer dependency matches version expected by vue-eslint-editor (currently 0.20.0+).
Create a new Linter instance: this.linter = new (require('eslint').Linter)()If using renderValidationDecorations, ensure it is set to 'on' as the default changed.
Import and register the component locally or globally: import VueEslintEditor from 'vue-eslint-editor'; Vue.component('vue-eslint-editor', VueEslintEditor)Ensure monaco-editor is installed and imported before using the component: import * as monaco from 'monaco-editor'
Pass a new Linter(): :linter="new (require('eslint').Linter)()"