Registry / testing / eslint-plugin-n8n-local-rules

eslint-plugin-n8n-local-rules

JSON →
library1.0.0jsnpmunverified

ESLint plugin for defining and using local custom rules within the n8n project. Version 1.0.0, stable. Based on Clayton Watts's eslint-plugin-local-rules, it allows n8n contributors to write project-specific lint rules without publishing separate packages. Key differentiator: designed specifically for n8n's internal code standards, but can serve as a template for any project needing local ESLint rules.

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.

Package is CommonJS-only; cannot use ESM import syntax.

const localRules = require('eslint-plugin-n8n-local-rules');

Export is CJS module.exports, not ESM named export.

const { rules } = require('eslint-plugin-n8n-local-rules');

Configuration presets provided; requires CJS destructuring.

const { configs } = require('eslint-plugin-n8n-local-rules');

Shows how to enable the plugin and set local rules in an ESLint config file.

// .eslintrc.js module.exports = { plugins: ['n8n-local-rules'], rules: { 'n8n-local-rules/no-hardcoded-credentials': 'error', 'n8n-local-rules/require-translation': 'warn' } };
Debug
Known footguns
gotchaRules are loaded from a 'local-rules' directory; must exist and contain rule files.
gotchaPlugin only works with ESLint's legacy config format (.eslintrc.*); flat config not supported.
gotchaRule names must be kebab-case; plugin fails silently if naming convention is off.
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
16 hits · last 30 days
gptbot
4
ahrefsbot
4
amazonbot
4
bingbot
3
script
1
Resources