Registry /
testing / eslint-plugin-de-morgan
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.
plugin
✓ import deMorgan from 'eslint-plugin-de-morgan'
✗ const deMorgan = require('eslint-plugin-de-morgan')
ESM-only since v2.0.0; requires 'import' statement.
recommended config
✓ import deMorgan from 'eslint-plugin-de-morgan'; export default [deMorgan.configs.recommended]
✗ module.exports = { extends: ['plugin:de-morgan/recommended'] }
Flat config (eslint.config.js) uses deMorgan.configs.recommended; legacy config uses 'plugin:de-morgan/recommended-legacy'.
rules
✓ import deMorgan from 'eslint-plugin-de-morgan'; const rules = deMorgan.rules['no-negated-conjunction']
✗ const rules = require('eslint-plugin-de-morgan').rules.no-negated-conjunction
Individual rules access via deMorgan.rules. Legacy require pattern fails in ESM.
Shows how to use the plugin with flat config and enable both rules.
import deMorgan from 'eslint-plugin-de-morgan';
export default [
deMorgan.configs.recommended,
{
plugins: {
'de-morgan': deMorgan
},
rules: {
'de-morgan/no-negated-conjunction': 'warn',
'de-morgan/no-negated-disjunction': 'error'
}
}
];
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
Using require() with plugin v2+ which is ESM-only.
fixChange to 'import deMorgan from 'eslint-plugin-de-morgan'' and ensure package.json has 'type': 'module'.
Configuration for rule 'de-morgan/no-negated-conjunction' is invalid
Misconfigured rule severity or options in legacy config.
fixEnsure rule is defined under 'rules' object: 'de-morgan/no-negated-conjunction': 'error'.
Cannot find module 'eslint-plugin-de-morgan'
Plugin not installed or missing from package.json.
fixRun 'npm install --save-dev eslint-plugin-de-morgan'.
Audit
Dependencies
eslintrequiredpeer dependency required for plugin to function