Registry /
testing / eslint-plugin-prettier-doc
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
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default export
✓ const plugin = require('eslint-plugin-prettier-doc');
✗ import plugin from 'eslint-plugin-prettier-doc'
ESLint plugins are typically required in CommonJS, but can be used with ESM via eslint-plugin-import or dynamic import.
configs (e.g., 'recommended')
✓ extends: ['plugin:prettier-doc/recommended']
✗ extends: ['eslint-plugin-prettier-doc/recommended']
The 'plugin:' prefix is required when using ESLint's extends syntax.
rules: no-concat, no-nested-concat, etc.
✓ rules: { 'prettier-doc/no-concat': 'error' }
✗ rules: { 'prettier-doc/no-concat': 2 }
Rule names are prefixed with 'prettier-doc/'. Using numeric severity is deprecated in ESLint; use string values like 'error'.
Shows installation, basic ESLint configuration with recommended preset, and a code example that violates the no-concat rule.
// install: npm install eslint-plugin-prettier-doc --save-dev
// .eslintrc.json
{
"plugins": ["prettier-doc"],
"extends": ["plugin:prettier-doc/recommended"],
"rules": {
"prettier-doc/no-concat": "error",
"prettier-doc/no-nested-concat": "error",
"prettier-doc/no-single-doc-concat": "error",
"prettier-doc/no-empty-flat-contents-for-if-break": "error"
}
}
// example.js (will trigger no-concat)
const doc = concat(['hello', line, 'world']);
Errors
Common errors & fixes
Plugin 'prettier-doc' not found
Plugin folder missing in node_modules; often due to missing install or incorrect name.
fixRun `npm install eslint-plugin-prettier-doc --save-dev` and ensure it's in dependencies.
Configuration for rule 'prettier-doc/no-concat' is invalid
Severity set to a number instead of 'off'/'warn'/'error'.
fixUse string severity: `'prettier-doc/no-concat': 'error'`.
Referenced rule 'prettier-doc/no-empty-flat-contents-for-if-break' is not defined
Typo in rule name (e.g., missing hyphen) or using an old version before the rule was added.
fixCheck correct rule name: 'no-empty-flat-contents-for-if-break' (with hyphens). Update plugin to >=1.0.0.
Cannot read property 'defineRules' of null
ESLint version mismatch; plugin expects specific ESLint API.
fixEnsure ESLint version is compatible (ESLint 8+ recommended).
Audit
Dependencies
No dependency data recorded yet.