Skip to content

Commit 6670f19

Browse files
author
David Hasani
committed
fix lint
1 parent 84e7ea9 commit 6670f19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/core/src/codewhisperer/service/transformByQ/transformApiHandler.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ export function addTableMarkdown(plan: string, stepId: string, tableMapping: { [
529529
return plan
530530
}
531531
const tables: any[] = []
532+
// eslint-disable-next-line unicorn/no-array-for-each
532533
tableObjects.forEach((tableObj: string) => {
533534
try {
534535
const table = JSON.parse(tableObj)
@@ -548,17 +549,22 @@ export function addTableMarkdown(plan: string, stepId: string, tableMapping: { [
548549
// table name and columns are shared, so only add to plan once
549550
plan += `\n\n\n${tables[0].name}\n|`
550551
const columns = tables[0].columnNames
552+
// eslint-disable-next-line unicorn/no-array-for-each
551553
columns.forEach((columnName: string) => {
552554
plan += ` ${getFormattedString(columnName)} |`
553555
})
554556
plan += '\n|'
557+
// eslint-disable-next-line unicorn/no-array-for-each
555558
columns.forEach((_: any) => {
556559
plan += '-----|'
557560
})
558561
// add all rows of all tables
562+
// eslint-disable-next-line unicorn/no-array-for-each
559563
tables.forEach((table: any) => {
564+
// eslint-disable-next-line unicorn/no-array-for-each
560565
table.rows.forEach((row: any) => {
561566
plan += '\n|'
567+
// eslint-disable-next-line unicorn/no-array-for-each
562568
columns.forEach((columnName: string) => {
563569
if (columnName === 'relativePath') {
564570
// add markdown link only for file paths

0 commit comments

Comments
 (0)