Skip to content

Commit af508df

Browse files
authored
Annotate all CompilerOptions fields with omitzero (#639)
1 parent f0e5bd8 commit af508df

File tree

68 files changed

+195
-8975
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+195
-8975
lines changed

Diff for: internal/core/compileroptions.go

+122-122
Large diffs are not rendered by default.

Diff for: testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with json api.js

+1-122
Original file line numberDiff line numberDiff line change
@@ -20,128 +20,7 @@ Fs::
2020
configFileName:: tsconfig.json
2121
CompilerOptions::
2222
{
23-
"allowJs": null,
24-
"allowArbitraryExtensions": null,
25-
"allowSyntheticDefaultImports": null,
26-
"allowImportingTsExtensions": null,
27-
"allowNonTsExtensions": null,
28-
"allowUmdGlobalAccess": null,
29-
"allowUnreachableCode": null,
30-
"allowUnusedLabels": null,
31-
"assumeChangesOnlyAffectDirectDependencies": null,
32-
"alwaysStrict": null,
33-
"baseUrl": "",
34-
"build": null,
35-
"checkJs": null,
36-
"customConditions": null,
37-
"composite": null,
38-
"emitDeclarationOnly": null,
39-
"emitBOM": null,
40-
"emitDecoratorMetadata": null,
41-
"downlevelIteration": null,
42-
"declaration": null,
43-
"declarationDir": "",
44-
"declarationMap": null,
45-
"disableSizeLimit": null,
46-
"disableSourceOfProjectReferenceRedirect": null,
47-
"disableSolutionSearching": null,
48-
"disableReferencedProjectLoad": null,
49-
"esModuleInterop": null,
50-
"exactOptionalPropertyTypes": null,
51-
"experimentalDecorators": null,
52-
"forceConsistentCasingInFileNames": null,
53-
"isolatedModules": null,
54-
"isolatedDeclarations": null,
55-
"ignoreDeprecations": "",
56-
"importHelpers": null,
57-
"inlineSourceMap": null,
58-
"inlineSources": null,
59-
"init": null,
60-
"incremental": null,
61-
"jsx": 0,
62-
"jsxFactory": "",
63-
"jsxFragmentFactory": "",
64-
"jsxImportSource": "",
65-
"keyofStringsOnly": null,
66-
"lib": null,
67-
"locale": "",
68-
"mapRoot": "",
69-
"module": 0,
70-
"moduleResolution": 0,
71-
"moduleSuffixes": null,
72-
"moduleDetectionKind": 0,
73-
"newLine": 0,
74-
"noEmit": null,
75-
"noCheck": null,
76-
"noErrorTruncation": null,
77-
"noFallthroughCasesInSwitch": null,
78-
"noImplicitAny": null,
79-
"noImplicitThis": null,
80-
"noImplicitReturns": null,
81-
"noEmitHelpers": null,
82-
"noLib": null,
83-
"noPropertyAccessFromIndexSignature": null,
84-
"noUncheckedIndexedAccess": null,
85-
"noEmitOnError": null,
86-
"noUnusedLocals": null,
87-
"noUnusedParameters": null,
88-
"noResolve": null,
89-
"noImplicitOverride": null,
90-
"noUncheckedSideEffectImports": null,
91-
"out": "",
92-
"outDir": "",
93-
"outFile": "",
94-
"paths": null,
95-
"preserveConstEnums": null,
96-
"preserveSymlinks": null,
97-
"project": "",
98-
"resolveJsonModule": null,
99-
"resolvePackageJsonExports": null,
100-
"resolvePackageJsonImports": null,
101-
"removeComments": null,
102-
"rewriteRelativeImportExtensions": null,
103-
"reactNamespace": "",
104-
"rootDir": "",
105-
"rootDirs": null,
106-
"skipLibCheck": null,
107-
"strict": null,
108-
"strictBindCallApply": null,
109-
"strictBuiltinIteratorReturn": null,
110-
"strictFunctionTypes": null,
111-
"strictNullChecks": null,
112-
"strictPropertyInitialization": null,
113-
"stripInternal": null,
114-
"skipDefaultLibCheck": null,
115-
"sourceMap": null,
116-
"sourceRoot": "",
117-
"suppressOutputPathCheck": null,
118-
"target": 0,
119-
"traceResolution": null,
120-
"tsBuildInfoFile": "",
121-
"typeRoots": null,
122-
"types": null,
123-
"useDefineForClassFields": null,
124-
"useUnknownInCatchVariables": null,
125-
"verbatimModuleSyntax": null,
126-
"maxNodeModuleJsDepth": null,
127-
"configFilePath": "/apath/tsconfig.json",
128-
"noDtsResolution": null,
129-
"pathsBasePath": "",
130-
"diagnostics": null,
131-
"extendedDiagnostics": null,
132-
"generateCpuProfile": "",
133-
"generateTrace": "",
134-
"listEmittedFiles": null,
135-
"listFiles": null,
136-
"explainFiles": null,
137-
"listFilesOnly": null,
138-
"noEmitForJsFiles": null,
139-
"preserveWatchOutput": null,
140-
"pretty": null,
141-
"version": null,
142-
"watch": null,
143-
"showConfig": null,
144-
"tscBuild": null
23+
"configFilePath": "/apath/tsconfig.json"
14524
}
14625

14726
FileNames::

Diff for: testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with jsonSourceFile api.js

+1-122
Original file line numberDiff line numberDiff line change
@@ -20,128 +20,7 @@ Fs::
2020
configFileName:: tsconfig.json
2121
CompilerOptions::
2222
{
23-
"allowJs": null,
24-
"allowArbitraryExtensions": null,
25-
"allowSyntheticDefaultImports": null,
26-
"allowImportingTsExtensions": null,
27-
"allowNonTsExtensions": null,
28-
"allowUmdGlobalAccess": null,
29-
"allowUnreachableCode": null,
30-
"allowUnusedLabels": null,
31-
"assumeChangesOnlyAffectDirectDependencies": null,
32-
"alwaysStrict": null,
33-
"baseUrl": "",
34-
"build": null,
35-
"checkJs": null,
36-
"customConditions": null,
37-
"composite": null,
38-
"emitDeclarationOnly": null,
39-
"emitBOM": null,
40-
"emitDecoratorMetadata": null,
41-
"downlevelIteration": null,
42-
"declaration": null,
43-
"declarationDir": "",
44-
"declarationMap": null,
45-
"disableSizeLimit": null,
46-
"disableSourceOfProjectReferenceRedirect": null,
47-
"disableSolutionSearching": null,
48-
"disableReferencedProjectLoad": null,
49-
"esModuleInterop": null,
50-
"exactOptionalPropertyTypes": null,
51-
"experimentalDecorators": null,
52-
"forceConsistentCasingInFileNames": null,
53-
"isolatedModules": null,
54-
"isolatedDeclarations": null,
55-
"ignoreDeprecations": "",
56-
"importHelpers": null,
57-
"inlineSourceMap": null,
58-
"inlineSources": null,
59-
"init": null,
60-
"incremental": null,
61-
"jsx": 0,
62-
"jsxFactory": "",
63-
"jsxFragmentFactory": "",
64-
"jsxImportSource": "",
65-
"keyofStringsOnly": null,
66-
"lib": null,
67-
"locale": "",
68-
"mapRoot": "",
69-
"module": 0,
70-
"moduleResolution": 0,
71-
"moduleSuffixes": null,
72-
"moduleDetectionKind": 0,
73-
"newLine": 0,
74-
"noEmit": null,
75-
"noCheck": null,
76-
"noErrorTruncation": null,
77-
"noFallthroughCasesInSwitch": null,
78-
"noImplicitAny": null,
79-
"noImplicitThis": null,
80-
"noImplicitReturns": null,
81-
"noEmitHelpers": null,
82-
"noLib": null,
83-
"noPropertyAccessFromIndexSignature": null,
84-
"noUncheckedIndexedAccess": null,
85-
"noEmitOnError": null,
86-
"noUnusedLocals": null,
87-
"noUnusedParameters": null,
88-
"noResolve": null,
89-
"noImplicitOverride": null,
90-
"noUncheckedSideEffectImports": null,
91-
"out": "",
92-
"outDir": "",
93-
"outFile": "",
94-
"paths": null,
95-
"preserveConstEnums": null,
96-
"preserveSymlinks": null,
97-
"project": "",
98-
"resolveJsonModule": null,
99-
"resolvePackageJsonExports": null,
100-
"resolvePackageJsonImports": null,
101-
"removeComments": null,
102-
"rewriteRelativeImportExtensions": null,
103-
"reactNamespace": "",
104-
"rootDir": "",
105-
"rootDirs": null,
106-
"skipLibCheck": null,
107-
"strict": null,
108-
"strictBindCallApply": null,
109-
"strictBuiltinIteratorReturn": null,
110-
"strictFunctionTypes": null,
111-
"strictNullChecks": null,
112-
"strictPropertyInitialization": null,
113-
"stripInternal": null,
114-
"skipDefaultLibCheck": null,
115-
"sourceMap": null,
116-
"sourceRoot": "",
117-
"suppressOutputPathCheck": null,
118-
"target": 0,
119-
"traceResolution": null,
120-
"tsBuildInfoFile": "",
121-
"typeRoots": null,
122-
"types": null,
123-
"useDefineForClassFields": null,
124-
"useUnknownInCatchVariables": null,
125-
"verbatimModuleSyntax": null,
126-
"maxNodeModuleJsDepth": null,
127-
"configFilePath": "/apath/tsconfig.json",
128-
"noDtsResolution": null,
129-
"pathsBasePath": "",
130-
"diagnostics": null,
131-
"extendedDiagnostics": null,
132-
"generateCpuProfile": "",
133-
"generateTrace": "",
134-
"listEmittedFiles": null,
135-
"listFiles": null,
136-
"explainFiles": null,
137-
"listFilesOnly": null,
138-
"noEmitForJsFiles": null,
139-
"preserveWatchOutput": null,
140-
"pretty": null,
141-
"version": null,
142-
"watch": null,
143-
"showConfig": null,
144-
"tscBuild": null
23+
"configFilePath": "/apath/tsconfig.json"
14524
}
14625

14726
FileNames::

Diff for: testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with json api.js

+1-122
Original file line numberDiff line numberDiff line change
@@ -12,128 +12,7 @@ Fs::
1212
configFileName:: /apath/tsconfig.json
1313
CompilerOptions::
1414
{
15-
"allowJs": null,
16-
"allowArbitraryExtensions": null,
17-
"allowSyntheticDefaultImports": null,
18-
"allowImportingTsExtensions": null,
19-
"allowNonTsExtensions": null,
20-
"allowUmdGlobalAccess": null,
21-
"allowUnreachableCode": null,
22-
"allowUnusedLabels": null,
23-
"assumeChangesOnlyAffectDirectDependencies": null,
24-
"alwaysStrict": null,
25-
"baseUrl": "",
26-
"build": null,
27-
"checkJs": null,
28-
"customConditions": null,
29-
"composite": null,
30-
"emitDeclarationOnly": null,
31-
"emitBOM": null,
32-
"emitDecoratorMetadata": null,
33-
"downlevelIteration": null,
34-
"declaration": null,
35-
"declarationDir": "",
36-
"declarationMap": null,
37-
"disableSizeLimit": null,
38-
"disableSourceOfProjectReferenceRedirect": null,
39-
"disableSolutionSearching": null,
40-
"disableReferencedProjectLoad": null,
41-
"esModuleInterop": null,
42-
"exactOptionalPropertyTypes": null,
43-
"experimentalDecorators": null,
44-
"forceConsistentCasingInFileNames": null,
45-
"isolatedModules": null,
46-
"isolatedDeclarations": null,
47-
"ignoreDeprecations": "",
48-
"importHelpers": null,
49-
"inlineSourceMap": null,
50-
"inlineSources": null,
51-
"init": null,
52-
"incremental": null,
53-
"jsx": 0,
54-
"jsxFactory": "",
55-
"jsxFragmentFactory": "",
56-
"jsxImportSource": "",
57-
"keyofStringsOnly": null,
58-
"lib": null,
59-
"locale": "",
60-
"mapRoot": "",
61-
"module": 0,
62-
"moduleResolution": 0,
63-
"moduleSuffixes": null,
64-
"moduleDetectionKind": 0,
65-
"newLine": 0,
66-
"noEmit": null,
67-
"noCheck": null,
68-
"noErrorTruncation": null,
69-
"noFallthroughCasesInSwitch": null,
70-
"noImplicitAny": null,
71-
"noImplicitThis": null,
72-
"noImplicitReturns": null,
73-
"noEmitHelpers": null,
74-
"noLib": null,
75-
"noPropertyAccessFromIndexSignature": null,
76-
"noUncheckedIndexedAccess": null,
77-
"noEmitOnError": null,
78-
"noUnusedLocals": null,
79-
"noUnusedParameters": null,
80-
"noResolve": null,
81-
"noImplicitOverride": null,
82-
"noUncheckedSideEffectImports": null,
83-
"out": "",
84-
"outDir": "",
85-
"outFile": "",
86-
"paths": null,
87-
"preserveConstEnums": null,
88-
"preserveSymlinks": null,
89-
"project": "",
90-
"resolveJsonModule": null,
91-
"resolvePackageJsonExports": null,
92-
"resolvePackageJsonImports": null,
93-
"removeComments": null,
94-
"rewriteRelativeImportExtensions": null,
95-
"reactNamespace": "",
96-
"rootDir": "",
97-
"rootDirs": null,
98-
"skipLibCheck": null,
99-
"strict": null,
100-
"strictBindCallApply": null,
101-
"strictBuiltinIteratorReturn": null,
102-
"strictFunctionTypes": null,
103-
"strictNullChecks": null,
104-
"strictPropertyInitialization": null,
105-
"stripInternal": null,
106-
"skipDefaultLibCheck": null,
107-
"sourceMap": null,
108-
"sourceRoot": "",
109-
"suppressOutputPathCheck": null,
110-
"target": 0,
111-
"traceResolution": null,
112-
"tsBuildInfoFile": "",
113-
"typeRoots": null,
114-
"types": null,
115-
"useDefineForClassFields": null,
116-
"useUnknownInCatchVariables": null,
117-
"verbatimModuleSyntax": null,
118-
"maxNodeModuleJsDepth": null,
119-
"configFilePath": "/apath/tsconfig.json",
120-
"noDtsResolution": null,
121-
"pathsBasePath": "",
122-
"diagnostics": null,
123-
"extendedDiagnostics": null,
124-
"generateCpuProfile": "",
125-
"generateTrace": "",
126-
"listEmittedFiles": null,
127-
"listFiles": null,
128-
"explainFiles": null,
129-
"listFilesOnly": null,
130-
"noEmitForJsFiles": null,
131-
"preserveWatchOutput": null,
132-
"pretty": null,
133-
"version": null,
134-
"watch": null,
135-
"showConfig": null,
136-
"tscBuild": null
15+
"configFilePath": "/apath/tsconfig.json"
13716
}
13817

13918
FileNames::

0 commit comments

Comments
 (0)