Skip to content

Commit ea63001

Browse files
committed
fix(lint): export the list-view-key-retired rule id from the package root
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D6F9axfoPzR7t8G1J7Ytzz
1 parent 05284b5 commit ea63001

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎.changeset/24728-filterable-fields-residue.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
fix(lint)!: `os lint` and the react-page props check report the retired list-view `filterableFields` by name, and the readers that still treated it as a field position go
88

9-
Clause-②: no (narrowing)
9+
Clause-②: yes (narrowing)
1010

1111
<!-- adr-0087: not-required (already-registered view-list-filterable-fields-removed, list-view-filterable-fields-retired) The key's retirement, its D2 conversion and its D3 entry are already registered by the change that tombstoned it, in this same unreleased major. This change adds no key, conversion or stored shape: it makes `os lint` and the react-page props check give the verdict `os validate` and `os build` already give the list-view key, with the tombstone's own prescription. -->
1212

@@ -22,7 +22,7 @@ Both now refuse the key by name, as an `error`, whatever it names:
2222
- a list view (every rung: an object's `listViews`, a `defineView` container's `list` / `listViews`, the flattened list overlay and the view item record) reports `list-view-key-retired` at `….filterableFields`, whether or not its object binding resolves;
2323
- `<ListView filterableFields>` on a react page reports `react-prop-retired`.
2424

25-
The message names the retirement and the hint is the tombstone's own "Delete the key" sentence, read from `ListViewSchema` rather than retyped.
25+
The message names the retirement and the hint is the tombstone's own "Delete the key" sentence, read from `ListViewSchema` rather than retyped. The new rule id is exported from the package root as `LIST_VIEW_KEY_RETIRED`.
2626

2727
### FROM → TO
2828

‎packages/lint/src/index.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,12 +496,15 @@ export type {
496496
// [#24668] Its FOURTH: a list view judged against the whole collection (a
497497
// runtime write that names no package) whose bound object exists nowhere —
498498
// refused the same way; `wholeCollection` is the statement.
499+
// Its FIFTH: a list view still carrying a key the spec retired, reported by
500+
// name with the tombstone's prescription (`os lint` never parses).
499501
export {
500502
validateListViewFieldRefs,
501503
LIST_VIEW_FIELD_UNKNOWN,
502504
LIST_VIEW_FIELD_DOTTED,
503505
LIST_VIEW_OBJECT_OUTSIDE_CLOSURE,
504506
LIST_VIEW_OBJECT_UNKNOWN,
507+
LIST_VIEW_KEY_RETIRED,
505508
} from './validate-list-view-field-refs.js';
506509
export type {
507510
ListViewFieldRefFinding,

0 commit comments

Comments
 (0)