1402 Commits

Author SHA1 Message Date
Andrew Branch
56289733a4
Revert #57896 (#58857) 2024-06-13 16:40:23 -07:00
Gabriela Araujo Britto
4857546865
Region-based semantic diagnostics (#57842) 2024-06-13 16:21:01 -07:00
Andrew Branch
97f3f0c8dd
Disable #57896 (Respect package.json "type" and module-format-specific file extensions in more module modes) (#58831) 2024-06-12 16:48:25 -07:00
Sheetal Nandi
dca9182ca8
Always write tsbuildInfo when running tsc -b (#58626) 2024-06-12 13:46:19 -07:00
Sheetal Nandi
9edddc73ad
Write buildInfo even if we dont emit js or dts for --outFile scenarios (#58760) 2024-06-03 17:06:14 -07:00
Sheetal Nandi
40583ff9df
Mark file as skips typechecking if it contains ts-nocheck (#58593) 2024-05-31 12:18:43 -07:00
Wesley Wigham
bbfc1aa281
Enable JS emit for noCheck and noCheck for transpileModule (#58364) 2024-05-30 13:38:37 -07:00
Sheetal Nandi
cd40d26f01
Skip typechecking file when generating declaraiton to get d.ts signature for incremental build (#58592) 2024-05-21 14:09:44 -07:00
Sheetal Nandi
d84431e706
Handle root files listed in project config from referenced project to be same as if they were included through import (#58560) 2024-05-20 10:05:42 -07:00
Sheetal Nandi
ef01ea1ac6
Stop checking existing resolution now that we have concept of package ID (#58528) 2024-05-14 10:30:22 -07:00
Sheetal Nandi
e51cbc8764
Do not lowercase typeReference directive name (#58525) 2024-05-13 16:35:49 -07:00
Sheetal Nandi
524456ff5a
Fix incorrect usage of getResolvedTypeReferenceDirectives and some refactoring (#58527) 2024-05-13 16:03:40 -07:00
Andrew Branch
14b4529a69
Fix tslib resolutions (#58451)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2024-05-07 11:28:20 -07:00
Jake Bailey
16beff101a
Use explicit extensions for imports within src (#58421) 2024-05-06 17:07:54 -07:00
Sheetal Nandi
fd81d04080
Lazy calculation of expensive file explaining diagnsotics and some caching to be used to share the diagnostic data (#58398) 2024-05-06 16:30:17 -07:00
Sheetal Nandi
7a38980a7e
Validate the options passed in are numbers instead of strings for our custom commandline options (#58388) 2024-05-01 14:51:36 -07:00
Wesley Wigham
f76727d17a
Add noCheck API option (#57934) 2024-04-26 13:21:15 -07:00
Sheetal Nandi
95d23ca7d2
Treat the input file name from referenced project as "ts" rather than file extension it is when determining eliding file for program construction (#58308) 2024-04-26 13:15:02 -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
Titian Cernicova-Dragomir
e62418e868
Isolated declarations errors (#58201)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 15:37:15 -07:00
Andrew Branch
e75f470be0
Report positionless tsconfig option errors on compilerOptions key (#58254) 2024-04-19 12:33:00 -07:00
Wesley Wigham
48870169dc
Check nearest package.json dependencies for possible package names for specifier candidates (#58176) 2024-04-18 17:43:08 -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
Andrew Branch
585a9af830
Respect package.json "type" and module-format-specific file extensions in more module modes (#57896) 2024-04-12 12:47:09 -07:00
Andrew Branch
b24b5c4ec1
Allow cross-project references to const enums in isolatedModules when referenced project has preserveConstEnums (#57914) 2024-03-27 11:45:57 -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
Jake Bailey
26df0cb23e
Remove 5.5 deprecated compiler options (#57527)
Co-authored-by: Andrew Branch <andrew@wheream.io>
2024-02-28 14:35:39 -08:00
Sheetal Nandi
f23927a806
Remove code related to prepend and fix baselines (#57472) 2024-02-28 09:52:38 -08:00
Jake Bailey
65de938e4e
Remove target=es3 (#57525) 2024-02-27 11:40:18 -08:00
Jake Bailey
1982349339
Update dependencies to latest compatible versions (#56561)
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
2024-01-19 12:44:01 -08:00
Andrew Branch
6cb6fc94ae
Add --module preserve, support require in --moduleResolution bundler (#56785) 2024-01-19 12:03:24 -08:00
Andrew Branch
385db449f5
With allowJs, process JS files found searching node_modules when they have a realpath outside node_modules (#56946) 2024-01-10 10:15:58 -08:00
Andrew Branch
aa186a82cf
getImpliedNodeFormatForFile does not need a Path (#56853) 2024-01-03 08:04:40 -08:00
Sheetal Nandi
b6121e400c
Replace disk path operations to use fileNames instead of path (#56476)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2023-11-27 22:21:29 -08:00
Jake Bailey
d3c7d96d2c
Remove old references to deprecated assertion node types (#56073) 2023-10-11 12:54:27 -07:00
Andrew Branch
1b70ac32b2
Support resolution-mode overrides in type-only constructs in all moduleResolution modes (#55725) 2023-09-26 14:20:05 -07:00
Oleksandr T
2e9e9a292c
feat(53656): Add support for the updated import attributes proposal (#54242) 2023-09-26 13:20:15 -07:00
Sheetal Nandi
dcb0fa7f44
Incremental testing for program structure and resolutions and fixes (#55814) 2023-09-22 10:53:19 -07:00
Sheetal Nandi
83f02a4b7e
Picking resolutions of module for sourceFile as method (#55818) 2023-09-22 10:24:37 -07:00
Jake Bailey
a3c5d5d37e
Make JSDoc skipping public, plus more configurable (#55739) 2023-09-21 15:31:09 -07:00
Sheetal Nandi
ec1414f627
Source files not affected by all module resolution options (#55790) 2023-09-20 16:45:32 -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
Jake Bailey
b5b6048bb3
Clean up helpers which are always present in ES2020 (#55515) 2023-08-28 12:26:22 -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
Jake Bailey
5e8c261b6a
dprint the codebase (#54820) 2023-08-16 14:26:38 -07:00
Sheetal Nandi
9261ca7a13
Share redirects cache key calculation between multiple caches used for module resolution and type reference directive (#55376) 2023-08-14 18:46:55 -07:00
Josh Goldberg ✨
0ae8ca11d2
Updated typescript-eslint to v6 (#54693)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-07-14 15:36:10 -07:00
Sheetal Nandi
5464403848
ParseConfigHost needs to extend ModuleResolutionHost (#54922) 2023-07-10 11:40:40 -07:00
Joshua Chen
e4cc532e14
Make bodiless declarations an error in JS (#54439) 2023-06-30 16:53:51 -07:00