Registry / testing / eslint-plugin-haraka

eslint-plugin-haraka

JSON →
library1.0.16jsnpmunverified

ESLint plugin providing Haraka-specific rules and recommended configuration for Haraka projects. Current stable version is 2.0.4 (as of 2025), with a major breaking change in v2.0.0 that depends on ESLint 9. The plugin enforces best practices for Haraka plugin development, including environment globals, ECMAScript version (es2024), and custom rules like no-unused-vars. It is actively maintained with frequent releases, typically following Haraka core updates. Key differentiators: tailored for Haraka's plugin architecture, includes a 'recommended' config, and integrates with flat config in ESLint 9.

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

Must include 'plugin:' prefix in ESLint config files.

extends: ['plugin:haraka/recommended']

ESM-only; no CommonJS support in v2. Use dynamic import() if needed.

import haraka from 'eslint-plugin-haraka'

For flat config (ESLint 9+), access configs via 'configs.recommended'.

import { configs } from 'eslint-plugin-haraka'; export default [...configs.recommended]

Installs the plugin, sets up .eslintrc.yaml with Haraka recommended config, and provides npm scripts for linting and auto-fix.

// .eslintrc.yaml plugins: - haraka extends: - eslint:recommended - plugin:haraka/recommended // package.json { "scripts": { "lint": "npx eslint *.js test", "lintfix": "npx eslint --fix *.js test" } } // Install npm install --save-dev eslint eslint-plugin-haraka // Run lint npm run lint
Debug
Known footguns
breakingv2.0.0 drops support for ESLint 8 and below. Requires ESLint 9 or higher.
breakingv2.0.0 removed deprecated formatting rules that were previously included.
breakingv1.1.1 removed the 'haraka:recommended' config and rules included in eslint:recommended.
deprecatedThe no-unused-vars rule now includes 'caughtErrorsIgnorePattern' in v2.0.3.
gotchaGlobals are now specified as 'readonly' by default since v2.0.2; previously they were set to true.
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