useDeclarationOrder checks both local declarations and named export occurrences, so its current name describes only part of the behavior. The replacement name should continue to cover exported and unexported top-level symbols without implying that every occurrence is a declaration.
Relevant files:
packages/konsistent/src/typescript/predicates/use-declaration-order.ts
packages/konsistent/src/typescript/parser.ts
packages/konsistent/src/typescript/types.ts
packages/konsistent/src/core/convention-name.ts
docs/reference/predicates.md
Possible names:
useSymbolOrder — preferred concise umbrella for declarations and exports.
useTopLevelSymbolOrder — more explicit about scope.
orderSymbols — shorter, but less consistent with the existing predicate naming style.
Backward compatibility: internal names and documentation can be renamed or removed without compatibility shims. In konsistent.json, keep useDeclarationOrder and its existing behavior as deprecated, add the replacement predicate, and emit a non-failing CLI warning whenever the old predicate is used.
useDeclarationOrderchecks both local declarations and named export occurrences, so its current name describes only part of the behavior. The replacement name should continue to cover exported and unexported top-level symbols without implying that every occurrence is a declaration.Relevant files:
packages/konsistent/src/typescript/predicates/use-declaration-order.tspackages/konsistent/src/typescript/parser.tspackages/konsistent/src/typescript/types.tspackages/konsistent/src/core/convention-name.tsdocs/reference/predicates.mdPossible names:
useSymbolOrder— preferred concise umbrella for declarations and exports.useTopLevelSymbolOrder— more explicit about scope.orderSymbols— shorter, but less consistent with the existing predicate naming style.Backward compatibility: internal names and documentation can be renamed or removed without compatibility shims. In
konsistent.json, keepuseDeclarationOrderand its existing behavior as deprecated, add the replacement predicate, and emit a non-failing CLI warning whenever the old predicate is used.