n8n:create-community-node-lint-rule
Installation
SKILL.md
Create Community Node Lint Rule
Guide for adding new ESLint rules to packages/@n8n/eslint-plugin-community-nodes/.
All paths below are relative to packages/@n8n/eslint-plugin-community-nodes/.
Step 1: Understand the Rule
Before writing code, clarify:
- What does the rule detect? (missing property, wrong pattern, bad value)
- Where does it apply? (
.node.tsfiles, credential classes, both) - Severity:
error(must fix) orwarn(should fix)? - Fixable? Can it be auto-fixed safely, or only suggest?
- Scope: Both
recommendedconfigs, or exclude fromrecommendedWithoutN8nCloudSupport?
Step 2: Implement the Rule
Create src/rules/<rule-name>.ts: