Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2866 commits
Select commit Hold shift + click to select a range
21c7f1c
Remove nonNullUnknownType (#57665)
Mar 15, 2024
06f6f35
Fix baselines after baseline change in main (#57798)
Mar 15, 2024
0a671aa
Change detection to detection by diff in organizeImports (#57267)
Mar 15, 2024
756c0c3
Use noTypesAndSymbols for API tests (#57799)
Mar 16, 2024
9866640
Update package-lock.json
Mar 16, 2024
eed3234
Update package-lock.json
Mar 17, 2024
37fa47e
Distribute mapped types over array/tuple intersections (#57801)
Mar 18, 2024
ac2e122
Make builder not depend on information from dts emit about really nee…
Mar 18, 2024
66047f7
Look for usable type nodes in associated expressions for declaration …
Mar 18, 2024
6086292
Add workflow to update LKG on release branches (#57835)
Mar 18, 2024
a46664a
Fixed inference between type placeholders with non-string constraints…
Mar 18, 2024
c295531
Adopt code action ranges for refactorings (#57608)
Mar 18, 2024
a9460c8
Add lib declaration for RegExp#unicodeSets (#57111)
Mar 18, 2024
3282ff2
add `Array.fromAsync` to `esnext` (#57748)
Mar 19, 2024
e37df04
Remove rich-navigation workflow (#57848)
Mar 19, 2024
8fa18b2
Print baseline diffs on test failures (#57852)
Mar 19, 2024
cc460dc
Revert PR 56087 (#57849)
Mar 19, 2024
309fd3d
Revert PR 56161 (#57853)
Mar 19, 2024
af81456
Fixed referencing properties that are reserved keywords in `@link` (#…
Mar 20, 2024
f70b068
isolatedModules errors for non-literal enum initializers (#56736)
Mar 20, 2024
4ecadc6
fix54092: return replacement ranges for completions on unclosed strin…
Mar 20, 2024
ede8ad8
fix(57451): Prevent self-imports when using the "Move to File" refact…
Mar 20, 2024
7d50455
Do not perserve references in declaration emit, unless preserve=true …
Mar 20, 2024
dc113f8
Don't indirect through _namespaces in tsserver/typingsInstaller (#57829)
Mar 20, 2024
e726059
Update deps and fix new lints (#57870)
Mar 21, 2024
a84577b
Remove `getSuggestionForNonexistent*` from `TypeChecker` (#57869)
Mar 21, 2024
03c4b35
Preserve resolution-mode as-written too (#57867)
Mar 21, 2024
ecb6eb2
Divide-and-conquer strategy for intersections of unions (#57871)
Mar 21, 2024
91cecdc
Lookup retained type nodes in the node builder using correct, specifi…
Mar 21, 2024
39fd535
Properly add assignees and reviewers for cherry picked PRs (#57889)
Mar 21, 2024
b75261d
On cherry-pick, attempt to update baselines on conflict (#57891)
Mar 21, 2024
3c63740
Use performance.now when possible, re-disable unconditional perf mark…
Mar 22, 2024
3c0a802
Remove sys.bufferFrom, duplicate Buffer declarations, etc (#57916)
Mar 25, 2024
ac962ea
Fix incorrect use of "path" instead of "resolvedPath" when watching f…
Mar 25, 2024
0d4414d
Allow `this` in constructor parameter defaults when legal (#57682)
Mar 25, 2024
64a0010
Limit decorator use-before-def check to ES decorators only (#57933)
Mar 25, 2024
d660bab
dprint exclude .git (#57935)
Mar 25, 2024
0e0975d
Add extra tests for inference with any co-inference with a different …
Mar 25, 2024
a1c4732
Test for tsc --watch to stub out actual time (#57936)
Mar 25, 2024
d4b8ff6
Directories dont check modified time when sending "change" event (#57…
Mar 25, 2024
088f25a
Update package-lock.json
Mar 26, 2024
316f180
fix(57635): duplicate property name error when trying to overwrite ea…
Mar 26, 2024
a22aaf0
Control flow analysis for element access with variable index (#57847)
Mar 26, 2024
2de69b0
feat(41825): JSDoc equivalent of import * (#57207)
Mar 26, 2024
6d0cc1b
Update package-lock.json
Mar 27, 2024
e1874f3
Propagate outer type parameters of single signature types (#57403)
Mar 27, 2024
a39c43c
Fix main baselines (#57962)
Mar 27, 2024
32a1370
Add missing parameters from Array.toLocaleString on ES2015 libs (#57679)
Mar 27, 2024
47f48d3
Apply same single-line style to copied nodes as manufactured ones (#5…
Mar 27, 2024
bc7e538
Fix main baselines. Again. (#57964)
Mar 27, 2024
fd388f7
Refactor expression evaluator (#57955)
Mar 27, 2024
b24b5c4
Allow cross-project references to const enums in isolatedModules when…
Mar 27, 2024
6b4eec4
Underline type nodes without position mappings in .types baselines (#…
Mar 27, 2024
c87b5bc
Watch events enhancements (#57950)
Mar 27, 2024
ed5eeaf
Preserve range on copied identifiers (#57965)
Mar 27, 2024
54504fc
Normalize slashes for paths in watch events (#57968)
Mar 27, 2024
f3f70df
Dont fail on "create" event when watching package json files (#57971)
Mar 27, 2024
b0d5ae6
fix type import check for default-import/re-export in js files (#57778)
Mar 27, 2024
e418f8d
Improve optionality detection in mapped type indexed access substitut…
Mar 27, 2024
ebd0570
Update package-lock.json
Mar 28, 2024
35f4f03
Compare package.json paths with correct sensitivity in getLocalModule…
Mar 28, 2024
12402f2
Ensure that we are checking if correct file with resolved path is pre…
Mar 28, 2024
6ff28d1
Node builder reuses type predicate nodes, more often reuses return po…
Mar 28, 2024
97dc5f0
Fixed a regression related to determining argument index when spread …
Mar 28, 2024
a73ca90
Remove getAllAccessorDeclarations from the EmitResolver (#57993)
Mar 29, 2024
426d8b6
Remove some unneeded parameters from NodeBuilder APIs (#57994)
Mar 29, 2024
075ebb4
Update package-lock.json
Mar 29, 2024
26358d2
Make sure virtual file system with watch behaves same way as sys/node…
Mar 29, 2024
fcfec8c
Reduce timeout for symlink Watching tests (#58000)
Mar 29, 2024
e256ec1
Now that we have osFlavour some of the TestServerHostOptions can be r…
Mar 29, 2024
db35774
Avoid testing in same CI jobs as releases (#58002)
Mar 29, 2024
278b4f9
Update OpenSSF scorecard link to new page rather than raw API (#58003)
Mar 29, 2024
b0042a7
Actually have a chance to reuse optional property signatures in the n…
Mar 29, 2024
32dfb37
Update package-lock.json
Mar 30, 2024
e0d9d46
Update getTimezoneOffset JSDoc (#58004)
Apr 1, 2024
98f2c12
Take into account peerDependency versions when calculating packageId …
Apr 1, 2024
824cd6e
Update package-lock.json
Apr 2, 2024
520772e
Fixed excess and common property checks with `NoInfer` (#57673)
Apr 2, 2024
66f5be9
Fix baselines from recent merge (#58037)
Apr 2, 2024
4cedfe4
Update dprint, don't force multiline imports for imports of single na…
Apr 2, 2024
42a215c
Fixed type predicate inference for discriminated union parameters (#5…
Apr 2, 2024
8e11448
Tweak CI failure diffing, produce an artifact for fixing baseline err…
Apr 2, 2024
46b4c92
fix51686: don't indent mapped types on new lines (#58039)
Apr 2, 2024
442720b
Remove FlowNodes and FlowFlags from public API (#58036)
Apr 3, 2024
5fe2ff2
Update package-lock.json
Apr 3, 2024
4386501
Make unused variable rule a warning, error on warnings for CI (#58059)
Apr 3, 2024
f52f7b9
Sort imports with dprint instead of eslint (#58058)
Apr 3, 2024
82897a0
Node builder scope traversal improvements (#58063)
Apr 3, 2024
565006c
Adjust the node builder compatible reference check to handle aliased …
Apr 3, 2024
1ab2a8d
fix(57761): Invalid verbatimModuleSyntax quick fix offered when also …
Apr 3, 2024
4a5f0f2
Update package-lock.json
Apr 4, 2024
772c290
Don't clear _children on NodeArrays (#58069)
Apr 4, 2024
83e3d6a
Skip visits to child nodes of entity names in visitExistingNodeTreeSy…
Apr 4, 2024
9f8a231
Use evaluator for isolatedModules enum restrictions (#57966)
Apr 4, 2024
386cc0f
Always consider type parameters in scope visible to the node builder …
Apr 4, 2024
f2bd592
Always consider parameters in scope visible to node builder (#58075)
Apr 4, 2024
69e7e57
Fixed crashes when looking up symbols of jsdoc nodes in TS files (#57…
Apr 4, 2024
84eff8f
Special case check for this identifiers to skip exhaustive scope trav…
Apr 4, 2024
5144b3e
Export executeCommandLine from public API (internal for now) (#58057)
Apr 4, 2024
cf4bb58
Omit effects-free conditional constructs from control flow graph (#58…
Apr 4, 2024
39daa13
Monomorphic flow nodes (#57977)
Apr 4, 2024
3456c6e
Monomorphize allocators for tsserver/public API, just like core compi…
Apr 5, 2024
4bfb4e6
Update package-lock.json
Apr 5, 2024
a2d37a5
Underlines in baselines should not consider nodes with .original set …
Apr 5, 2024
bdd1f94
Accept decimal strings in Intl.NumberFormat (#57595)
Apr 5, 2024
9ba0800
Fixed braceless type tags with types starting with an open parenthesi…
Apr 5, 2024
c3f1854
Update package-lock.json
Apr 6, 2024
10b5059
Always set node-version for setup-node (#58102)
Apr 7, 2024
13e6474
Add test case related to invalid object spreads (#58105)
Apr 8, 2024
f608fc0
check return type of this type predicates (#57341)
Apr 8, 2024
25de1b0
Send configFileDiag event when presence of errors change on project.u…
Apr 8, 2024
066773b
Fix constraints of nested homomorphic mapped type instantiations (#58…
Apr 8, 2024
f89a5fd
Replace addUndefined in serializeTypeForDeclaration with the actual d…
Apr 9, 2024
7a4cbfa
Update package-lock.json
Apr 9, 2024
5c55ce1
Expand auto-import API to work on non-existent files and symbols (#58…
Apr 9, 2024
53de336
Don't propagate partial union/intersection properties between caches …
Apr 9, 2024
b6351c6
Update package-lock.json
Apr 10, 2024
30095a2
Do not populate exports pattern keys if more than one `*` exists (#58…
Apr 10, 2024
2b038ff
Fix self tail call return type inference in assigned anonymous functi…
Apr 10, 2024
806d734
Update package-lock.json
Apr 11, 2024
f5bc6dd
Refactor name resolution to separate component (#57974)
Apr 11, 2024
551a600
Add es2023 target (#58140)
Apr 12, 2024
4e29496
Keep scriptInfo and project alive even after file delete till next fi…
Apr 12, 2024
6092c2d
Add missing recursive vistor on copied `import` type nodes (#58165)
Apr 12, 2024
b006768
When watching failed lookups, watch packageDir if its a symlink other…
Apr 12, 2024
6431a30
Don’t emit __esModule on CJS files that didn’t use ESM syntax (#58169)
Apr 12, 2024
585a9af
Respect package.json `"type"` and module-format-specific file extensi…
Apr 12, 2024
a9b0d1e
Use better context scope for class constructor implementation signatu…
Apr 12, 2024
a4d12a4
fix(58146): enum quick info can display non ascii strings (#58171)
Apr 12, 2024
8bcff81
Update package-lock.json
Apr 13, 2024
9d8f812
Bump the github-actions group with 3 updates (#58103)
Apr 15, 2024
4b01686
fix(58151): JSDoc tags get lost when inheriting from a grandparent cl…
Apr 15, 2024
be1f892
Fix declaration emit of divergent accessors in JS classes (#58172)
Apr 15, 2024
ce21314
Update package-lock.json
Apr 16, 2024
fd23885
Avoid infinite recursion with `inferReverseMappedType` (#57837)
Apr 16, 2024
fb1b26c
Propagate object flags related to object and array literals onto `mod…
Apr 16, 2024
bc86414
fix baselines
Apr 16, 2024
3d52392
Logarithmish baseline counts (#58212)
Apr 16, 2024
cbae6cf
Add template variable ${configDir} for substitution of config files d…
Apr 16, 2024
0dd12da
Error on replacement character only in top-level scanning (#58227)
Apr 17, 2024
904a59f
Print correct information about `noOpenRef` in the baseline (#58230)
Apr 17, 2024
967d618
Add lint error for declarations marked internal, but unexported (#58229)
Apr 17, 2024
23e99c2
Fix miss-reported node reuse in types. (#58221)
Apr 17, 2024
72f413c
Remove deprecated originalKeywordKind and isInJSDocNamespace (#58228)
Apr 17, 2024
17e420d
Use built-in no-restricted-syntax to ban null instead of plugin, ban …
Apr 18, 2024
207932a
Move incremental state to WeakSets (#58087)
Apr 18, 2024
5b3060d
[Experiment] Some tweaking to handle project references for auto impo…
Apr 18, 2024
05f4dba
Try sorting and deduplicating events before comparing. (#58242)
Apr 18, 2024
e33b8d9
Correct the type of return value of FinalizationRegistry.unregister (…
Apr 18, 2024
4887016
Check nearest package.json dependencies for possible package names fo…
Apr 19, 2024
e04a27c
DOM update 2024-04-16 (#58211)
Apr 19, 2024
8426565
Rename isParameterDeclaration to isPartOfParameterDeclaration (#58251)
Apr 19, 2024
10b784a
Add try catch and defer.reject for checking sys tests (#58252)
Apr 19, 2024
e0755dc
Fixed single signature type parameter leak (#58008)
Apr 19, 2024
c0ac582
Make the config file name in logger little more concise. (#58255)
Apr 19, 2024
93451e8
fix(57497): "Remove unused declaration" does not work on overloaded f…
Apr 19, 2024
e75f470
Report positionless tsconfig option errors on `compilerOptions` key (…
Apr 19, 2024
21f5f39
Add test for type inference of Promise/PromiseLike union bug (#58213)
Apr 19, 2024
3480321
Add types for `String#isWellFormed` and `String#toWellFormed` (#58010)
Apr 19, 2024
aedd1b1
Correctly compute noUncheckedIndexedAccess effects on compound/increm…
Apr 19, 2024
e8f2225
Don't cache child lists for tokens (#58233)
Apr 19, 2024
e62418e
Isolated declarations errors (#58201)
Apr 19, 2024
c50ec79
Add gitHead to package.json in all release workflows (#58135)
Apr 19, 2024
8e8c1b6
Fix bug#56997 - Parenthesized SatisfiesExpressions with comments are …
Apr 19, 2024
42f238b
Provide Syntax Checking for Regular Expressions (#55600)
Apr 19, 2024
b1d821a
Fixed crash in go to definition related to expando classes in JS file…
Apr 19, 2024
21b5c96
Add an extra test case for an error on async function typed using `@t…
Apr 20, 2024
4900c7f
Modify `CONTRIBUTING.md` and the issue templates `bug_report.yml` and…
Apr 22, 2024
0b71b81
Add `transpileDeclaration` API method (#58261)
Apr 24, 2024
4976211
Disable no-inferrable-types eslint rule (#58306)
Apr 24, 2024
5b69fdf
Clone questionMark and dotdotdot token (#58263)
Apr 24, 2024
e6ba82b
Error on references to literal enum members in conditions (#58264)
Apr 24, 2024
e28ad99
Report RegExp errors in grammar check, use Annex B grammar (#58295)
Apr 24, 2024
501fa6e
fix(58265): JSDoc comment string with the keyword "@private" before i…
Apr 25, 2024
ed87791
Rephrase error messages on backrererences. (#58310)
Apr 25, 2024
9504b75
Test Node 22 (#58309)
Apr 25, 2024
8d2e2d5
Move RegExp flag version mapping to LanguageFeatureMinimumTarget (#58…
Apr 25, 2024
ce4862c
Updating move to file (#58257)
Apr 25, 2024
04963ee
Make diagnostics public on EmitOutput (#58317)
Apr 26, 2024
c92bd16
Exclude outDir and declarationDir even if they come from extended con…
Apr 26, 2024
95d23ca
Treat the input file name from referenced project as "ts" rather than…
Apr 26, 2024
f76727d
Add `noCheck` API option (#57934)
Apr 26, 2024
1db1376
Dont get declaration diagnostics for file from referenced project (#5…
Apr 26, 2024
ebcb09d
Improve diagnostics deduplication (#58220)
Apr 26, 2024
3358157
Bump the github-actions group across 1 directory with 3 updates (#58350)
Apr 29, 2024
d2ad3ca
Improve diagnostics deduplication 2 (#58318)
Apr 29, 2024
cd566ba
RegExp syntax checking performance (#58339)
Apr 29, 2024
c763c27
Fix ghost errors resulting from out-of-order type checking (#58337)
Apr 29, 2024
dc316af
fix(58360): Cheese being inserted on TypeScript Quick Fix (#58365)
Apr 29, 2024
36146aa
Remove seemingly unused SymbolLink `constEnumReferenced` (#58377)
Apr 30, 2024
749bd83
Cache discriminated contextual types (#58372)
Apr 30, 2024
33b1561
Add a code fixer for --isolatedDeclarations errors (#58260)
Apr 30, 2024
f01cae8
Fixed an issue with `missingType` narrowing by `case undefined` in de…
May 1, 2024
62c41f8
Update baselines after PR 58001 (#58386)
May 1, 2024
66dd12e
fix(58259): getTextOfJSDocComment is stripping # from JSDoc comment (…
May 1, 2024
7a38980
Validate the options passed in are numbers instead of strings for our…
May 1, 2024
3a74ec4
Disable constraint reduction in intersections created by constraint h…
May 2, 2024
e154d47
Type alias declarations should not return an effective annotation nod…
May 3, 2024
70d8ec2
Fix name generation scoping (#58418)
May 6, 2024
2070713
Ensure jsDocParsingMode is passed to LanguageService document registr…
May 6, 2024
fd81d04
Lazy calculation of expensive file explaining diagnsotics and some ca…
May 6, 2024
9598d35
Avoid getting single call signatures when parameter types are the sam…
May 6, 2024
16beff1
Use explicit extensions for imports within src (#58421)
May 7, 2024
0d3c481
Declaration emit should retain (instead of elide) unresolved computed…
May 7, 2024
320764c
Upgrade to esbuild 0.21 (#58454)
May 7, 2024
14b4529
Fix tslib resolutions (#58451)
May 7, 2024
9d714f4
Update dependencies (#58458)
May 7, 2024
b9c71c3
Always send configFileDiagEvent and instead set triggerFile for more …
May 7, 2024
bc14459
Refactor default export info name gathering (#58460)
May 8, 2024
fece7f1
Preserve type nodes which resolve to errors in declaration emit outpu…
May 8, 2024
dcec37e
fix(58399): [isolatedDeclarations][5.5] Autofix does not work when JS…
May 8, 2024
be8fb98
Implementing copy/paste (#57262)
May 8, 2024
81e9929
Load unit tests more consistently (pulled from ESM branch) (#58481)
May 9, 2024
19dc1c6
Re-export more referenced types from protocol.ts (#58487)
May 9, 2024
9f9682c
Move all js emit alias marking behavior behind a single entrypoint (#…
May 10, 2024
0c1b36f
fix37816: goToDefinition skips call signatures for jsx components (#5…
May 10, 2024
72c12c9
Isolated declarations fix signature serialization scoping (#58409)
May 10, 2024
017c1e0
fix(55765): Implement Interface Code Action is not available under ce…
May 10, 2024
fadc83b
Handle config file change and default project management (#58486)
May 10, 2024
0b37062
Remove unused SymbolLinks properties (#58393)
May 10, 2024
8111503
Update unicode identifier start/part with more recent unicode version…
May 13, 2024
56cfd6c
Preserve return type nodes which resolve to errors in declaration emi…
May 13, 2024
d8fd9fd
Bump the github-actions group with 3 updates (#58510)
May 13, 2024
524456f
Fix incorrect usage of getResolvedTypeReferenceDirectives and some re…
May 13, 2024
e51cbc8
Do not lowercase typeReference directive name (#58525)
May 13, 2024
d90e8e7
Fix constant evaluation of template string expressions (#58500)
May 14, 2024
ef01ea1
Stop checking existing resolution now that we have concept of package…
May 14, 2024
2d47953
Declaration emit should avoid issuing errors on unresolved names (#58…
May 14, 2024
4ece0a3
Partially reuse type nodes (#58516)
May 14, 2024
84ed6a3
Make sure that jsdoc is always in range with parameter declaration (#…
May 15, 2024
5c21b7f
Update package-lock.json
May 16, 2024
4da470d
fix56509: return `type` if `tryCreateAwaitedType` fails (#58547)
May 16, 2024
e8274f7
add types for set methods proposal (#57230)
May 16, 2024
79a8514
Attempt to reuse type parameter constraint nodes (#58539)
May 16, 2024
d84431e
Handle root files listed in project config from referenced project to…
May 20, 2024
ba78807
Handle project / program roots in tsserver correctly (#58562)
May 20, 2024
84ab39d
Respect `importModuleSpecifierPreference` in sort order between fixes…
May 21, 2024
11b73ec
Fixing a case when text is pasted into a blank file (#58595)
May 21, 2024
6f72e24
Fix elided var handling in declaration emit visibility checks (#58605)
May 21, 2024
0684152
If module exports const enum, invalidate js files along with dts as i…
May 21, 2024
cd40d26
Skip typechecking file when generating declaraiton to get d.ts signat…
May 21, 2024
75342d8
fix(58584): formatJSDocLink shouldn't introduce a trailing space when…
May 21, 2024
9370347
Fix missing sanitization in verifyTsc baselines for timestamps (#58609)
May 21, 2024
b682ed4
Lock down computed names in object literals and classes under --isola…
May 22, 2024
e02af8e
Fix issue where sometimes modified timestamp file was not shown in ba…
May 22, 2024
f2aebff
Use dprint package for dtsBundler formatting rather than dprint CLI (…
May 22, 2024
8537bb7
Error if type node uses inaccessible type in isolated declarations (#…
May 22, 2024
ddf43cd
CodeMapper support (#55406)
May 22, 2024
7f0149f
Merge branch 'ts-main' into skeate/main
May 31, 2024
57c03f3
Reintegrate src/compiler/checker.ts
May 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 7 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"reporter": ["lcovonly", "cobertura"],
"src": "src",
"include": ["src/**", "built/local/**"],
"exclude": ["**/node_modules/**"],
"mergeAsync": true
}
8 changes: 4 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.154.0/containers/javascript-node/.devcontainer/base.Dockerfile
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/blob/v0.245.2/containers/javascript-node/.devcontainer/base.Dockerfile

# [Choice] Node.js version: 14, 12, 10
ARG VARIANT="14-buster"
# [Choice] Node.js version: 18, 16, 14
ARG VARIANT="18-buster"
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}

RUN sudo -u node npm install -g gulp-cli
RUN sudo -u node npm install -g hereby
27 changes: 16 additions & 11 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,25 @@
"build": {
"dockerfile": "Dockerfile",
"args": {
"VARIANT": "14"
"VARIANT": "18"
}
},
"settings": {
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/bin/bash",
"icon": "terminal-bash",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/bin/bash",
"icon": "terminal-bash"
}
}
},
},
"extensions": [
"dbaeumer.vscode-eslint",
"dprint.dprint"
]
}
},
"extensions": [
"dbaeumer.vscode-eslint"
],
"remoteUser": "node"
}
48 changes: 0 additions & 48 deletions .dockerignore

This file was deleted.

66 changes: 66 additions & 0 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
// If updating this, also update the config in dtsBundler.mjs.
"indentWidth": 4,
"lineWidth": 1000,
"newLineKind": "auto",
"useTabs": false,
"typescript": {
"newLineKind": "crlf",
"semiColons": "always",
"quoteStyle": "preferDouble",
"quoteProps": "consistent",
"useBraces": "whenNotSingleLine",
"bracePosition": "sameLineUnlessHanging",
"singleBodyPosition": "sameLine",
"nextControlFlowPosition": "nextLine", // Stroustrup style braces.
"trailingCommas": "onlyMultiLine",
"preferHanging": false,
"operatorPosition": "maintain",

"arrowFunction.useParentheses": "preferNone",
"conditionalExpression.linePerExpression": false, // Keep our "match/case"-ish conditionals.
"functionExpression.spaceAfterFunctionKeyword": true,
"importDeclaration.forceMultiLine": "whenMultiple",
"constructorType.spaceAfterNewKeyword": true,
"constructSignature.spaceAfterNewKeyword": true,

"module.sortImportDeclarations": "caseInsensitive",
"module.sortExportDeclarations": "caseInsensitive",
"exportDeclaration.sortNamedExports": "caseInsensitive",
"importDeclaration.sortNamedImports": "caseInsensitive"
},
"prettier": {
"newLineKind": "lf",
"associations": [
"**/*.{yaml,yml}"
],
"yml.tabWidth": 2,
"yaml.tabWidth": 2,
"yml.singleQuote": true,
"yaml.singleQuote": true
},
"json": {
// This would be good to do in known-JSONC files, but VS Code warns on trailing commas.
"trailingCommas": "never"
},
"excludes": [
"**/.git",
"**/node_modules",
"**/*-lock.json",
"coverage/**",
"lib/**",
"built/**",
"tests/**",
"internal/**",
"**/*.generated.*",
"scripts/*.d.*",
"**/_namespaces/**"
],
// Note: if adding new languages, make sure settings.template.json is updated too.
// Also, if updating typescript, update the one in package.json.
"plugins": [
"https://plugins.dprint.dev/typescript-0.90.5.wasm",
"https://plugins.dprint.dev/json-0.19.2.wasm",
"https://plugins.dprint.dev/prettier-0.40.0.json@68c668863ec834d4be0f6f5ccaab415df75336a992aceb7eeeb14fdf096a9e9c"
]
}
12 changes: 12 additions & 0 deletions .eslint-plugin-local.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const fs = require("fs");
const path = require("path");

const rulesDir = path.join(__dirname, "scripts", "eslint", "rules");
const ext = ".cjs";
const ruleFiles = fs.readdirSync(rulesDir).filter(p => p.endsWith(ext));

module.exports = {
rules: Object.fromEntries(ruleFiles.map(p => {
return [p.slice(0, -ext.length), require(path.join(rulesDir, p))];
})),
};
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

Loading