-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
feat: support loading TS config files using --experimental-strip-types
#19401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
fasttime
merged 44 commits into
eslint:main
from
aryaemami59:feat/native-ts-config-files
Apr 2, 2025
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
d30cf2d
feat: support native loading of TS config files
aryaemami59 05752e9
Workaround unflagged `--experimental-strip-types`
aryaemami59 26c2555
ci: only test native type transformation on ubuntu
aryaemami59 340daee
ci: only pass `--experimental-transform-types` for Node.js 22
aryaemami59 501f2a1
fix: update error message for `unstable_native_nodejs_ts_config` flag
aryaemami59 c70ee7d
Add `describe` block
aryaemami59 0600a99
ci: add `NODE_OPTIONS` to CI workflow matrix
aryaemami59 c9f8dfc
ci: remove Node.js 23.x from CI workflow matrix
aryaemami59 4ce4ea8
refactor: simplify TypeScript support check in `config-loader.js`
aryaemami59 ac56991
refactor: move comment in `cli-engine.js`
aryaemami59 ca00c65
refactor: move comment in `eslint.js`
aryaemami59 71a6c74
refactor: improve JSDoc return type description for `dynamicImport`
aryaemami59 b1644b5
chore: fix `dynamicImport` function
aryaemami59 5427038
refactor: rename `dynamicImport` to `dynamicImportConfig` for clarity
aryaemami59 eabfb9d
refactor: re-use `dynamicImportConfig`
aryaemami59 167f9b1
chore: add unit-tests for CJS and ESM
aryaemami59 41c8078
Fix indentation
aryaemami59 ec65a0a
Add specific error message for older Node.js versions
aryaemami59 c111184
Fix unit-tests
aryaemami59 f6bea88
docs: add section on native TypeScript support
aryaemami59 3d69372
chore: update `@types/node` to version 22.13.14
aryaemami59 5a747de
Fix formatting
aryaemami59 8f08903
Add unit-test for when `process.features.typescript` is set to `false`
aryaemami59 fbcf61b
Fix `configuration-files.md`
aryaemami59 dbac643
Move `Native TypeScript Support` section in `configuration-files.md`
aryaemami59 c6add69
Use the `in` operator
aryaemami59 7e5f91f
Fix error message for older versions of Node.js
aryaemami59 3359c3c
Add comment about `NODE_OPTIONS` in `ci.yml`
aryaemami59 82c2029
Switch from `Rule` to `RuleDefinition`
aryaemami59 35944a1
Re-use existing flags in unit-tests
aryaemami59 d4c4cb3
Fix false positives in unit tests
aryaemami59 6fb98bf
Add more unit-tests for `--experimental-strip-types` alone
aryaemami59 b3898f2
Fix unit-tests
aryaemami59 f65f47f
Fix minor JSDoc-related issues
aryaemami59 f8e1ebf
Remove unnecessary `afterEach` hook in ESLint tests
aryaemami59 3f5c55c
Remove unnecessary conditional `describe` call
aryaemami59 b0f6da7
Add `beforeEach` hook
aryaemami59 5ed1c55
Add `eslintConfigFiles` and `nativeTSConfigFileFlags` helpers
aryaemami59 518d9db
Remove unnecessary `stub.restore()` calls
aryaemami59 76118fa
Fix minor JSDoc issue in `eslint.js`
aryaemami59 f44bd29
Rename `loadTypeScriptConfigFile` to `loadTypeScriptConfigFileWithJiti`
aryaemami59 23cf96f
Fix the types in `cli-engine.js`
aryaemami59 ee9b4c9
Change `Promise<void>` to `Promise<never>` in `eslint-helpers.js`
aryaemami59 46b0b6b
Revert all changes inside `cli-engine.js`
aryaemami59 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.