1952 Commits

Author SHA1 Message Date
Mateusz Burzyński
50b93bc803
Allow trailing commas after import attributes in ImportType (#61920) 2025-06-24 09:49:37 -07:00
Nicolò Ribaudo
0dfd0c2143
Restore import defer = parsing (#61837) 2025-06-09 14:31:15 -07:00
Nicolò Ribaudo
a69c6d0bb7
Add support for import defer proposal (#60757)
Co-authored-by: Ujjwal Sharma <ryzokuken@disroot.org>
Co-authored-by: Nicolò Ribaudo <hell@nicr.dev>
2025-06-06 12:11:21 -07:00
Oleksandr T.
a591ca3fdc
fix(61747): for (using of = is incorrectly parsed (#61764) 2025-06-05 16:37:40 -07:00
Oleksandr T.
5170645f4e
fix(60592): JSDoc implements space sensetive (#60640) 2025-01-17 12:12:12 -08:00
Ron Buckton
bd1641f769
Fix ASI after get/set keyword (#60225) 2024-10-15 20:53:35 -04:00
Andrew Branch
9ad213fa8f
Validate JSON imports into ESM in --module nodenext (#60019) 2024-09-24 13:02:42 -07:00
Isabel Duan
52eaa7b02f
Enable --isolatedDeclarations on TS codebase (#59635)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
Co-authored-by: Andrew Branch <andrew@wheream.io>
2024-09-15 18:10:52 -07:00
Jake Bailey
195203e971
Add regex eslint plugin, fix lints (#59371) 2024-08-13 14:16:53 -07:00
Isabel Duan
dfb870150c
fix35982: allow BigIntLiteral to parse as PropertyName for literal object and indices (#58608) 2024-07-19 17:48:08 -07:00
Oleksandr T
e450c463c6
fix(59011): TypeScript generates invalid types if @import tags are spread over multiple lines (#59026) 2024-07-10 15:37:49 -07:00
Daniel Rosenwasser
a6fb4dc103
Create a SourceFile-level indirection on children maps, store SyntaxList children directly on nodes. (#59154) 2024-07-08 16:55:41 -07:00
Lars Kappert
752135eb40
Remove unused exports & dead code (using Knip) (#56817)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-06-27 14:24:01 -07:00
Jake Bailey
e30b5fbafe
Remove typescript-etw (#58832) 2024-06-13 13:04:51 -07:00
Evan Wallace
8d62e2f175
Implement "Arbitrary Module Namespace Identifiers" (#58640)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-06-04 13:40:50 -07:00
graphemecluster
d0ef028841
Improve Recovery of Unterminated Regular Expressions (#58289)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-05-24 15:46:26 -04:00
Jake Bailey
16beff101a
Use explicit extensions for imports within src (#58421) 2024-05-06 17:07:54 -07:00
形素叢集・ぐらふぃーむ
42f238bfbb
Provide Syntax Checking for Regular Expressions (#55600)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 16:51:08 -07:00
Jake Bailey
207932a8fe
Move incremental state to WeakSets (#58087) 2024-04-18 11:30:11 -07:00
Jake Bailey
17e420daf6
Use built-in no-restricted-syntax to ban null instead of plugin, ban null type too (#58095) 2024-04-18 09:06:32 -07:00
Jake Bailey
3456c6e21c
Monomorphize allocators for tsserver/public API, just like core compiler (#58045) 2024-04-04 17:03:03 -07:00
Jake Bailey
772c29072e
Don't clear _children on NodeArrays (#58069) 2024-04-04 07:50:10 -07:00
Oleksandr T
2de69b09c5
feat(41825): JSDoc equivalent of import * (#57207) 2024-03-26 13:52:43 -07:00
Jake Bailey
7d504551ae
Do not perserve references in declaration emit, unless preserve=true (#57681) 2024-03-20 15:06:02 -07:00
Mateusz Burzyński
af81456247
Fixed referencing properties that are reserved keywords in @link (#57739) 2024-03-20 09:01:49 -07:00
Jake Bailey
76f8de0a0d
Require exactly 'true' for truthy reference directive prop (#57782) 2024-03-15 14:38:37 -07:00
Abraham Guo
0b044f729f
When attaching JSDoc diagnostics, make sure to only include diagnostics that actually belong with the JSDoc (#57271) 2024-02-13 12:13:43 -08:00
Andrew Branch
0ea57f6ca1
Let AutoImportProvider find non-declaration files in wildcard exports... (#56848) 2024-01-03 15:01:49 -08:00
Oleksandr T
a36d04fc63
feat(56634): Support for "const modifier on type parameters" with JSDoc (#56649) 2023-12-15 09:21:10 -08:00
Nathan Shively-Sanders
3d112515cb
Improve JSDocFunctionType readability (#56694) 2023-12-06 15:31:59 -08:00
Oleksandr T
3500c92a78
feat(56600): JSDoc @callback doesn't support this parameters via @this (#56610) 2023-12-01 15:48:36 -08:00
Oleksandr T
4eae150282
fix(50303): Using @linkcode in combination with private methods causes TS1003 in JavaScript files. (#56338) 2023-11-28 15:07:31 -08:00
Oleksandr T
921259ee02
fix(56567): import type from = require('foo') fails to parse (#56568) 2023-11-27 15:22:27 -08:00
Sheetal Nandi
13c9b16b2a
When reparsing top level await dont set original node for the new source file (#56439) 2023-11-21 13:35:49 -08:00
Oleksandr T
628bf0ec85
fix(56376): import type from from "foo" (#56385) 2023-11-13 14:43:24 -08:00
Mateusz Burzyński
3e12250839
Allow of in await using declarations in for-of loops (#55558) 2023-10-31 15:06:36 -04:00
Oleksandr T
2e9e9a292c
feat(53656): Add support for the updated import attributes proposal (#54242) 2023-09-26 13:20:15 -07:00
Jake Bailey
a3c5d5d37e
Make JSDoc skipping public, plus more configurable (#55739) 2023-09-21 15:31:09 -07:00
Jake Bailey
c0b39c6967
Skip parsing JSDoc when not needed (#52921)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2023-09-13 15:58:20 -07:00
Mateusz Burzyński
fe70ec984e
Parse reserved identifiers as dotted names of ambient modules (#55282) 2023-08-28 14:48:20 -07:00
Jake Bailey
b5b6048bb3
Clean up helpers which are always present in ES2020 (#55515) 2023-08-28 12:26:22 -07:00
Jake Bailey
4d7753ae3e
Ensure parsing context is restored in jsdoc parser (#55537) 2023-08-28 09:52:54 -07:00
Sampo Kivistö
ec2bd4e252
perf: replace String and Array indexOf method calls with includes method call (#55482) 2023-08-25 11:27:55 -07:00
Mateusz Burzyński
e0a324b050
Don't parse DotDotDotToken in JSX attribute values (#55284) 2023-08-24 10:17:33 -07:00
Nils
3790c921dd
Fix typo isInvalid -> isValid (#55414) 2023-08-17 10:07:13 -07:00
Jake Bailey
5e8c261b6a
dprint the codebase (#54820) 2023-08-16 14:26:38 -07:00
Jake Bailey
f37d2ad669
Prevent detached diagnostics from running off the end of the file (#55381) 2023-08-15 08:29:36 -07:00
Jack Works
cd391b066b
chore: disallows unicode escape sequence in JSX (#48609)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-08-09 15:59:39 -07:00
Kyℓe Hensel
a86be554ab
allow a colon directly after @ts-check/nocheck (#54893) 2023-07-21 09:16:31 -07:00
Mateusz Burzyński
2623fe7049
Fixed false positive syntax errors with in inside for (#54801)
Co-authored-by: Evan Wallace <evan.exe@gmail.com>
2023-07-20 12:13:44 -07:00