@@ -12,11 +12,9 @@ const oneFile = 1;
12
12
* @internal
13
13
*/
14
14
const printResultSetIssues = ( issues : LintIssue [ ] ) : void => {
15
- // eslint-disable-next-line no-restricted-syntax
16
- for ( const issue of issues ) {
17
- // eslint-disable-next-line no-console
15
+ issues . forEach ( ( issue ) => {
18
16
console . log ( issue . toString ( ) ) ;
19
- }
17
+ } ) ;
20
18
} ;
21
19
22
20
/**
@@ -26,7 +24,6 @@ const printResultSetIssues = (issues: LintIssue[]): void => {
26
24
* @param quiet True suppress warnings, false show warnings
27
25
* @internal
28
26
*/
29
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
30
27
const printIndividualResultSet = ( resultSet , quiet : boolean ) : void => {
31
28
const { filePath, issues, ignored, errorCount, warningCount} = resultSet ;
32
29
@@ -59,7 +56,6 @@ const printIndividualResultSet = (resultSet, quiet: boolean): void => {
59
56
* @param quiet True suppress warnings, false show warnings
60
57
* @internal
61
58
*/
62
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
63
59
const printTotals = ( linterOutput , quiet : boolean ) : void => {
64
60
const { errorCount, warningCount, ignoreCount} = linterOutput ;
65
61
@@ -86,12 +82,10 @@ const printTotals = (linterOutput, quiet: boolean): void => {
86
82
* @param quiet Flag indicating whether to print warnings.
87
83
* @internal
88
84
*/
89
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
90
85
export const write = ( linterOutput , quiet : boolean ) : void => {
91
- // eslint-disable-next-line no-restricted-syntax
92
- for ( const result of linterOutput . results ) {
86
+ linterOutput . results . forEach ( ( result ) => {
93
87
printIndividualResultSet ( result , quiet ) ;
94
- }
88
+ } ) ;
95
89
96
90
if ( linterOutput . results . length > oneFile ) {
97
91
printTotals ( linterOutput , quiet ) ;
0 commit comments