Repository navigation
chore(lint): flag deprecated props in examples, stories and source - #3311
Merged
interactivellama merged 19 commits intoNov 24, 2026
Merged
Conversation
interactivellama
force-pushed
the
feat/v11-llm-4-deprecated-lint
branch
from
November 15, 2026 21:48
04e7262 to
6685abb
Compare
interactivellama
changed the base branch from
master
to
feat/v11-llm-2-migration-guide
November 15, 2026 21:50
This was referenced Nov 16, 2026
interactivellama
force-pushed
the
feat/v11-llm-4-deprecated-lint
branch
from
November 16, 2026 08:07
6685abb to
d141e7a
Compare
5 of 15 tasks
interactivellama
changed the base branch from
feat/v11-llm-2-migration-guide
to
fix/deprecated-dom-apis
November 16, 2026 08:07
4 of 15 tasks
interactivellama
force-pushed
the
feat/v11-llm-4-deprecated-lint
branch
from
November 17, 2026 02:10
d141e7a to
b0bf46f
Compare
interactivellama
force-pushed
the
feat/v11-llm-4-deprecated-lint
branch
2 times, most recently
from
November 17, 2026 08:39
43ba51b to
b0ab35e
Compare
6 of 15 tasks
interactivellama
force-pushed
the
feat/v11-llm-4-deprecated-lint
branch
from
November 17, 2026 17:47
b0ab35e to
44fd7f2
Compare
interactivellama
force-pushed
the
feat/v11-llm-4-deprecated-lint
branch
from
November 17, 2026 21:54
44fd7f2 to
56db94e
Compare
interactivellama
force-pushed
the
feat/v11-llm-4-deprecated-lint
branch
from
November 17, 2026 22:45
56db94e to
1b9f716
Compare
…base-open example
ariaLabelledby was the text "Edit Name", not the id of an element, so the dialog had no accessible name.
…ch Radios The swatch toggle passed checked to each Radio inside a RadioGroup. The group's value already sets checked, and RadioGroup only warns about checked when it has no value, so nothing changes at runtime; this removes the deprecated use so the source passes no-deprecated.
…ntainerStyle style lands on the same container, so the markup is unchanged and the development warning is gone.
local/no-deprecated (eslint-rules/no-deprecated.mjs) wraps @typescript-eslint/no-deprecated and skips only symbols declared under the same components/<name>/ or utilities/<name>/ directory as the file using them: a component honoring its own deprecated prop during the 11.x RC. Another component's deprecated prop, or a deprecated React or DOM API, is an error. It covers components/, utilities/ and types/; tests, examples and stories are configured separately. This exempts a kind of use rather than a per-file count, which ESLint's bulk suppressions would have done, letting a new deprecated use hide behind a removed one. The four components that forward their own deprecated onKeyPress to React's deprecated onKeyPress carry an inline disable until 11.0 removes the prop.
On CI, linting the fixtures crashed inside TypeScript (getLocalModuleSpecifier -> normalizeSlashes(undefined)): with bundler resolution and neither paths nor baseUrl, TypeScript 6 has no base directory when it computes a module specifier. The repo tsconfig sets paths, so only the fixture project hit it.
CI sets CI=true, which makes typescript-eslint infer a single CLI run. That mode isn't meant for several ESLint instances in one process: on the second lint, TypeScript crashed resolving the fixture's import (getLocalModuleSpecifier -> normalizeSlashes(undefined)). Opt out with disallowAutomaticSingleRunInference, and drop the fixture paths entry from the previous commit, which didn't help. Reproduces locally with CI=true.
…alog internalHandleClick called handleClick(event) with no event in scope, so it read the deprecated global window.event, and it compared the trigger through ReactDOM.findDOMNode, which React 19 removed. Popover attaches the handler only to the open dialog and this branch runs only when closed, so it was unreachable and nothing changes at runtime; it now takes the event and compares the trigger element directly.
The JavaScript block turns off type information, so local/no-deprecated saw nothing in .js/.jsx source. Give it the project back. The one false positive, the createElement feature check in execution-environment, carries an inline disable.
Skip computed object keys, which name a value rather than a property, and get parser services through ESLintUtils so a file outside the project fails with the upstream message.
tseslint.config is deprecated in favor of ESLint's own defineConfig.
interactivellama
force-pushed
the
feat/v11-llm-4-deprecated-lint
branch
from
November 21, 2026 00:04
3ff043d to
0c9c78d
Compare
interactivellama
marked this pull request as ready for review
November 21, 2026 00:44
interactivellama
added a commit
that referenced
this pull request
Nov 23, 2026
The example passed the deprecated productTheme, which the no-deprecated lint from #3311 rejects in examples. Set the same backgroundColor values through style, which is the migration the deprecation recommends.
interactivellama
added a commit
that referenced
this pull request
Nov 23, 2026
The example passed the deprecated productTheme, which the no-deprecated lint from #3311 rejects in examples. Set the same backgroundColor values through style, which is the migration the deprecation recommends.
interactivellama
added a commit
that referenced
this pull request
Nov 23, 2026
The example passed the deprecated productTheme, which the no-deprecated lint from #3311 rejects in examples. Set the same backgroundColor values through style, which is the migration the deprecation recommends.
Niznikr
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the v11 merge train, stack 1 "clean CI": ci-warnings → react-hooks-refs → deprecated-dom-apis → deprecated-prop lint → private exports.
Additional description
Turns on
@typescript-eslint/no-deprecatedso deprecated props don't spread through copied code, and documents the same rule for consumers.__examples__and stories verbatim, so they must be clean. The.js/.jsxexamples and stories are now linted with type information.components/,utilities/,types/): error.local/no-deprecated(eslint-rules/no-deprecated.mjs) wraps the upstream rule and skips one kind of use: a symbol declared under the samecomponents/<name>/orutilities/<name>/directory as the file using it. That is a component reading its own deprecated props to honor them during the 11.x RC. Another component's deprecated prop, or a deprecated React or DOM API, fails. This replaces a per-file suppression count, which would let a new deprecated use hide behind a removed one. The match is by directory, so a deprecated prop of a sibling component in the same directory is also allowed; nothing does that today..js/.jsxsource is checked too, with type information re-enabled for it; one false positive (thecreateElementfeature check inexecution-environment.js) carries an inline disable.eslint-rules/__tests__covers own and cross-component uses, as property reads and as JSX attributes, plus a deprecated DOM API.onKeyPressto React's deprecatedonKeyPress; those lines carry an inline disable until 11.0.Example and story fixes, one
docs(<component>)commit each:base-open: the handler read the globalwindow.event. It now gets the panel's event. This was a real bug.base-with-page-type-editable:ariaLabelledby="Edit Name"wasn't an element id, so the dialog had no accessible name. Each of the two edit dialogs now points at its own assistiveh2, and their ids (dialog, input, tooltip) no longer collide.errorId, which is derived now. One snapshot changed: the RadioButtonGroup Error story's help id is a generated id instead oferror-id.status: 'completed'instead ofcompletedSteps.hub-expandable-stepscopies its state array instead of mutating it.Cross-component source fixes:
keyboardNavigableDialog(used byPopover) read the deprecated globalwindow.eventandfindDOMNode. It now gets the keydown event passed in and compares the trigger to the event target. The old path was unreachable, sincePopoverattaches the handler only to the open dialog, so this is a refactor;keyboard-navigable-dialog.test.jscovers it.ColorPickerpassed the deprecatedcheckedto its swatchRadios. The group'svaluealready sets it andRadioGrouponly warns without avalue, so no warning fired and nothing changes at runtime; this is a cleanup so the source passes the rule.Filestyled its loading spinner withSpinner's deprecatedcontainerStyle, which warned in development. It now usesstyle, which lands on the same container. Regression test infiles.test.jsx.Consumer docs:
docs/lint-deprecated-props.mdand a README section, with thedefineConfig(tseslint.configs.base, …)setup (defineConfigfromeslint/config;tseslint.configis deprecated). I checked it in a scratch consumer against the built types, in.tsxand (withallowJs).jsx.Deprecated DOM/React APIs (
keyCode,substr,onKeyPress,MutableRefObject, …) were removed from source in the base PR, so lint stays at 0 errors and 0 warnings.CONTRIBUTOR checklist (do not remove)
Please complete for every pull request.
Green gate — all of these must pass locally (CI runs the same):
npm run lintpasses with 0 errors (npm run lint:fixto auto-fix). Warnings are the tracked gradual-migration backlog; do not add new errors.npm run typecheckis clean (tsc --noEmit).npm test -- --runpasses — this runs both Vitest projects (jsdomunit+ real-browserbrowser) and the story HTML snapshots. If you changed rendered markup on purpose, update snapshots withnpm test -- --run -uand review the diff.npm run buildsucceeds (type-check + Vite library build +.d.ts+ entry shims).Behavior & docs:
components/button/__tests__). New props and bug fixes should get a regression test. Tests that genuinely need a real browser (focus traversal, layout/measurement, canvas) go in a*.browser.test.jsxfile (thebrowserproject); everything else is jsdom.npm run storybook→ http://localhost:6007/. Confirm the story actually renders and behaves (deprecated Storyshots/Karma are gone; there is no separate browser-tests server).content/visualPickerFigure, render props likerenderItem,iconprops,events), not assumptions — a common source of "component looks broken" reports has been stories authored against the wrong API. Cross-check againstcomponents/<name>/__examples__..d.ts(they're generated by the build); JS consumers rely on them via editor type-acquisition.REVIEWER checklist (do not remove)
CIworkflow: lint, typecheck, test, build). Chromatic visual review, if configured, has been checked.components/__tests__/__snapshots__/story-snapshots.test.jsx.snap).@salesforce/design-system-react/components/<name>and nested paths resolve for ESM, CJS, and types). Removing/renaming a public component or export is a breaking change →feat!:/BREAKING CHANGE:and a major version bump.