eslint-formatter-kakoune
raw JSON → 1.0.0 verified Sat Apr 25 auth: no javascript
ESLint formatter that outputs warnings and errors in the format expected by Kakoune's lint.kak, enabling seamless integration with the editor. Version 1.0.0 is stable with infrequent releases. This formatter is a specialized alternative to other ESLint formatters, tailored specifically for Kakoune with no external runtime dependencies beyond ESLint.
Common errors
error Error [ERR_REQUIRE_ESM]: require() of ES Module ... not supported. ↓
cause Using CommonJS require() on an ESM-only package.
fix
Switch to import syntax or configure CommonJS support.
error Cannot find module 'eslint-formatter-kakoune' ↓
cause Package not installed or incorrect path in --format.
fix
Install with 'npm install --save-dev eslint-formatter-kakoune' and use correct path.
Warnings
gotcha The module is ESM-only; it will throw an error if required with CommonJS. ↓
fix Use import syntax or set type: 'module' in package.json.
Install
npm install eslint-formatter-kakoune yarn add eslint-formatter-kakoune pnpm add eslint-formatter-kakoune Imports
- default wrong
const formatter = require('eslint-formatter-kakoune')correctimport formatter from 'eslint-formatter-kakoune' - formatter
const formatter = require('eslint-formatter-kakoune') - format wrong
import { format } from 'eslint-formatter-kakoune'; const result = format(results, data)correctimport { format } from 'eslint-formatter-kakoune'
Quickstart
$ eslint --format=node_modules/eslint-formatter-kakoune file.js