Registry / testing / eslint-lsp

eslint-lsp

JSON →
library0.1.2jsnpmunverified

eslint-lsp is a language server that wraps ESLint to provide linting diagnostics via the Language Server Protocol (LSP). The current stable version is 0.1.2, with an infrequent release cadence. It is a minimal implementation, still lacking many features (e.g., code actions) and is primarily intended as a proof-of-concept. Compared to alternatives like vscode-eslint or eslint-language-server, it is barebones and community-maintained. It works with editors like Emacs (lsp-mode, eglot) by spawning the server with --stdio.

npm install eslint-lsp
INSTALL
IMPORT
SIG · ESLINT-LSP
E
eslint-lsp
testingjavascriptv0.1.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

eslint-lsp
not importable as library; used as CLI via 'eslint-lsp --stdio'
This package is a CLI tool, not a library. There is no exported API to import. Use it as an executable.

Install globally, create a minimal ESLint config, and test the LSP with a raw LSP initialize message via stdin.

npm install -g eslint-lsp eslint # create a basic .eslintrc.json cat > .eslintrc.json <<'EOF' { "extends": ["eslint:recommended"], "env": { "es6": true, "node": true } } EOF # run the language server printf 'Content-Length: 56\r\n\r\n{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' | eslint-lsp --stdio
Debug
Known issues
breakingVersion 0.1.x is a work-in-progress; many LSP features (e.g., code actions, formatting) are missing or broken.
fix
Consider using eslint-language-server or vscode-eslint for a more complete solution.
affects: >=0.0.0
gotchaThe server does not support all ESLint config formats (e.g., .eslintrc.js may not be loaded correctly).
fix
Use JSON-formatted .eslintrc (e.g., .eslintrc.json) to ensure config is parsed.
affects: >=0.0.0
gotchaNo caching mechanism; every file open triggers a fresh lint, slowing down large projects.
fix
None yet; limit workspace size or use alternative server.
affects: >=0.0.0
deprecatedPackage name is not unique (conflicts with eslint-lsp on Open VSX); may be renamed/clarified in future.
fix
Use full npm scope @danielpza/eslint-lsp if ambiguous; but current npm package is eslint-lsp.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'eslint'
eslint is not installed or not in node_modules of the global install.
fix
Install eslint globally alongside eslint-lsp: npm install -g eslint-lsp eslint
Content-Length header missing
Sending data without proper LSP framing; need Content-Length header.
fix
Prefix JSON message with 'Content-Length: <length>\r\n\r\n' where <length> is the byte length of the JSON string.
Upgrade
Version history
0.1.2latest on npm
Audit
Dependencies
eslintrequiredESLint is required as peer dependency to perform actual linting. The server shell out or import eslint.
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-lsp — npm install eslint-lsp · libregistry