Merged
Size
L
Change Breakdown
Feature70%
Docs20%
Testing10%
#27886feat(core): Add options-sorted-alphabetically lint rule for community nodes

ESLint rule flags unsorted community node options

ESLint rule flags unsorted community node options

Community node contributors now get automatic warnings when dropdown options aren't alphabetically ordered — catching a common review issue before it reaches maintainers.

Community node contributors submitting dropdown menus in their integrations will now receive immediate ESLint warnings when option lists aren't alphabetically sorted. The new rule, options-sorted-alphabetically, scans .node.ts files for type: 'options' parameters — covering resource dropdowns, operation selectors, and any other options fields — and flags misordered entries using locale-aware comparison that handles non-ASCII characters correctly, including Spanish and Portuguese labels.

This addresses the most frequently flagged issue in community node reviews, where maintainers previously had to manually catch and request fixes for alphabetically unsorted dropdowns. The rule is set to warn in both recommended config profiles, allowing contributors to self-correct before submission. Since it's a lint rule rather than a build blocker, existing nodes aren't affected — only new and modified nodes will receive the warning during development or CI checks.

View Original GitHub Description

Summary

Adds a new ESLint rule options-sorted-alphabetically to @n8n/eslint-plugin-community-nodes that enforces alphabetical ordering of all type: 'options' parameter arrays in .node.ts files. The rule applies to resource, operation, and any other options-type dropdown. It uses locale-aware comparison (localeCompare with sensitivity: 'base') to correctly handle non-ASCII names (e.g. Spanish/Portuguese labels). The rule is set to warn in both recommended and recommendedWithoutN8nCloudSupport configs, consistent with resource-operation-pattern.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/CE-713

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)
© 2026 · via Gitpulse