Repository navigation
Conversation
Upgrade lint presets and resolvers while preserving TypeScript 5.3 and CLI behavior. Signed-off-by: Rodrigo Fernandes <rodrigo.fernandes@datadoghq.com>
Match Jest discovery and validate TypeScript exports from JS and JSX without changing MJS parser settings. Signed-off-by: Rodrigo Fernandes <rodrigo.fernandes@datadoghq.com>
Parse JSX modules for import-x named and namespace checks from JS and JSX without changing MJS settings. Signed-off-by: Rodrigo Fernandes <rodrigo.fernandes@datadoghq.com>
This branch has not been deployed
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.
This is 3 of 4, stacked on the runtime draft. It updates lint before the TypeScript compiler moves to 6, so reviewers can evaluate the rule migration independently of the compiler upgrade.
--ignore-pathwith ESLint 10 flat config and explicit ignores. Use import-x with the TypeScript resolver, thenrules for Node, and@eslint/jsonfor strict JSON. Retain regex optimization after checking diagnostics and autofix.Verified: Frozen Yarn Classic install; 27 tests on each of Node 22.23.5, 24.22.3, and 26.13.1; Jest discovery, JSX export, JSON, ignore, unresolved import, and regex lint probes. For the source adjustments, 320 option and rendered-output comparisons matched the runtime base on each of Node 12.0.0 and 24.22.3. This stacked base does not trigger the master-only PR workflow.
Reviewer focus: whether the scoped JS/JSX import parser and Jest globs preserve the old lint coverage. The authored delta is +141/-104; generated Yarn lockfile churn is +775/-1,263. The scope excludes runtime dependency changes and the TypeScript 6 upgrade.
JSX and Jest overrides