Registry / testing / eslint-config-etherpad

eslint-config-etherpad

JSON →
library4.0.5jsnpmunverified

ESLint shareable config used by Etherpad and its plugins. Version 4.0.5 (stable). This package provides multiple config presets (etherpad, etherpad/node, etherpad/browser, etherpad/tests, etc.) and a plugin-oriented config that automatically applies the correct presets based on file location. It includes a workaround for ESLint's modern module resolution issue (ESLint #3458). Key differentiator: tailored specifically for Etherpad ecosystem, handles backend/frontend/test code separately, and requires explicit peer dependency on ep_etherpad-lite to satisfy Node.js plugin checks.

testing
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.

This package is not imported in code; it is used in ESLint configuration files.

import { ... } from 'eslint-config-etherpad'

The 'etherpad/plugin' config automatically applies the correct sub-configs for different file types.

module.exports = { extends: 'etherpad/plugin' }

The patch is a workaround for ESLint issue #3458. Must be called before any 'extends' in .eslintrc.

require('eslint-config-etherpad/patch/modern-module-resolution')

Creates a .eslintrc.cjs file that extends the etherpad/plugin config and adds an override for shared Node/browser files.

// .eslintrc.cjs 'use strict'; // Workaround for https://github.com/eslint/eslint/issues/3458 require('eslint-config-etherpad/patch/modern-module-resolution'); module.exports = { root: true, extends: 'etherpad/plugin', overrides: [ { files: ['static/js/shared/**/*'], env: { 'shared-node-browser': true, }, }, ], };
Debug
Known footguns
gotchaPatch required: The require('eslint-config-etherpad/patch/modern-module-resolution') call is necessary for ESLint to resolve plugins correctly. Omitting it causes 'Failed to load plugin' errors.
gotchaPeer dependency ep_etherpad-lite must be manually installed and symlinked; npm install removes the symlink.
deprecatedThe 'etherpad/plugin' config may become outdated as ESLint evolves; always check compatibility with your ESLint version.
gotchaESLint version mismatch: The shareable config may require a specific ESLint version. Using an incompatible version can cause rule errors.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
4
ahrefsbot
4
script
1
Resources