Fix TypeScript build errors
- Fixed unused variable warnings by prefixing with underscore - Removed unused imports - Removed test files from repository
This commit is contained in:
@@ -72,11 +72,11 @@ function parseConfluenceTable(html: string): Filament[] {
|
||||
const filaments: Filament[] = [];
|
||||
|
||||
// Find all tables and process each one
|
||||
$('table').each((tableIndex, table) => {
|
||||
$('table').each((_tableIndex, table) => {
|
||||
let headers: string[] = [];
|
||||
|
||||
// Get headers
|
||||
$(table).find('tr').first().find('th, td').each((i, cell) => {
|
||||
$(table).find('tr').first().find('th, td').each((_i, cell) => {
|
||||
headers.push($(cell).text().trim());
|
||||
});
|
||||
|
||||
@@ -86,7 +86,7 @@ function parseConfluenceTable(html: string): Filament[] {
|
||||
}
|
||||
|
||||
// Process rows
|
||||
$(table).find('tr').slice(1).each((rowIndex, row) => {
|
||||
$(table).find('tr').slice(1).each((_rowIndex, row) => {
|
||||
const cells = $(row).find('td');
|
||||
if (cells.length >= headers.length) {
|
||||
const filament: any = {};
|
||||
|
||||
Reference in New Issue
Block a user