File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -131,14 +131,6 @@ export async function lint(project: string, options?: Partial<LintOptions>) {
131
131
ignoreEmptyType : lintOptions . ignoreEmptyType ,
132
132
}
133
133
134
- sourceFile . forEachChild ( node => {
135
- checkNode ( node , context )
136
- } )
137
-
138
- correctCount += context . typeCheckResult . correctCount
139
- totalCount += context . typeCheckResult . totalCount
140
- anys . push ( ...context . typeCheckResult . anys . map ( ( a ) => ( { file, ...a } ) ) )
141
-
142
134
if ( lintOptions . reportSemanticError ) {
143
135
const diagnostics = program . getSemanticDiagnostics ( sourceFile )
144
136
for ( const diagnostic of diagnostics ) {
@@ -162,6 +154,14 @@ export async function lint(project: string, options?: Partial<LintOptions>) {
162
154
}
163
155
}
164
156
157
+ sourceFile . forEachChild ( node => {
158
+ checkNode ( node , context )
159
+ } )
160
+
161
+ correctCount += context . typeCheckResult . correctCount
162
+ totalCount += context . typeCheckResult . totalCount
163
+ anys . push ( ...context . typeCheckResult . anys . map ( ( a ) => ( { file, ...a } ) ) )
164
+
165
165
if ( lintOptions . fileCounts ) {
166
166
fileCounts . set ( file , {
167
167
correctCount : context . typeCheckResult . correctCount ,
You can’t perform that action at this time.
0 commit comments