Topics
- TypeScript
- eslint
- eslint-plugin
- n8n
- community-nodes
- ast
- linting
- rule-creation
What it does
Implement new ESLint rules for the n8n community node linter plugin, including rule logic, tests, documentation, and plugin registration. Used when extending @n8n/eslint-plugin-community-nodes to enforce coding patterns in n8n node implementations.
Generated from the current SKILL.md.
Frequently asked
Does this skill work with TypeScript ESLint rules?
Yes. The skill guides creating ESLint rules for the @n8n/eslint-plugin-community-nodes package using @typescript-eslint/utils and TypeScript AST utilities.
Can I make a rule that auto-fixes violations?
Yes. Rules can be marked `fixable: 'code'` in the meta object, and the `fix()` callback in `context.report()` provides the fixer methods.
What scope do community node lint rules typically target?
Rules apply to `.node.ts` files and credential classes that implement INodeType or ICredentialType. The skill provides AST helpers like `isNodeTypeClass()` and `isCredentialTypeClass()` to filter the right targets.
Do I need to add my rule to both ESLint configs?
Usually yes—add to both `recommended` and `recommendedWithoutN8nCloudSupport` unless your rule depends on n8n cloud features, in which case add only to `recommended`.
What testing framework does this skill use?
The skill uses @typescript-eslint/rule-tester for unit tests and includes patterns for mocking file utilities and testing both valid and invalid code cases.
Generated from the current SKILL.md. These answers refresh after source changes.