Skip to content

Commit a6ef91c

Browse files
authored
Merge pull request #143 from ghiscoding/chore/lint-format
chore: fix Biome linting & formatting issues
2 parents 7f01fc9 + 6d37e6b commit a6ef91c

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

packages/excel-builder-vanilla/src/Excel/Drawing/__tests__/Picture.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ describe('Picture', () => {
6060
createTextNode: (text: string) => ({ text }),
6161
};
6262
const origCreateElement = Util.createElement;
63-
Util.createElement = (doc: any, name: string, attrs?: any) => doc.createElement(name);
63+
Util.createElement = (doc: any, name: string, _attrs?: any) => doc.createElement(name);
6464
const pic = new Picture();
65-
pic.anchor = { toXML: (doc: any, node: any) => ({ nodeName: 'anchored', children: [node] }) } as any;
65+
pic.anchor = { toXML: (_doc: any, node: any) => ({ nodeName: 'anchored', children: [node] }) } as any;
6666
pic.setMedia({ fileName: 'img.png', rId: 'rId1', id: '4', data: '', contentType: 'image/png', extension: 'png' });
6767
pic.setDescription('desc');
6868
const xml = pic.toXML(xmlDoc as any);

packages/excel-builder-vanilla/src/Excel/__tests__/Workbook.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe('Workbook', () => {
119119
// Mock window.XMLSerializer
120120
(globalThis as any).window = {
121121
XMLSerializer: class {
122-
serializeToString(val: any) {
122+
serializeToString(_val: any) {
123123
return '<mocked/>';
124124
}
125125
},

packages/excel-builder-vanilla/src/Excel/__tests__/Worksheet.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ vi.mock('../Util.js', async () => {
5353
},
5454
createXmlDoc: vi.fn(() => ({
5555
documentElement: makeMockNode(),
56-
createElement: vi.fn((doc, name) => makeMockNode(name)),
56+
createElement: vi.fn((_doc, name) => makeMockNode(name)),
5757
createTextNode: vi.fn(() => ({})),
5858
})),
59-
createElement: vi.fn((doc, name) => makeMockNode(name)),
59+
createElement: vi.fn((_doc, name) => makeMockNode(name)),
6060
positionToLetterRef: vi.fn((col, row) => `${col}${row}`),
6161
setAttributesOnDoc: vi.fn(() => {}),
6262
uniqueId: vi.fn(prefix => `${prefix}-1`),
@@ -198,8 +198,6 @@ describe('Excel/Worksheet', () => {
198198
ws._orientation = 'landscape';
199199
(globalThis as any).__currentWorksheet = ws;
200200
ws.toXML();
201-
// Check that Util.createElement was called with pageSetup and orientation
202-
const calls = (globalThis as any).__colSetAttributeCalls;
203201
// Since our Util mock doesn't track pageSetup, let's spy on Util.createElement
204202
// Instead, check that the orientation is set on a node
205203
// (the Util mock will be called with name 'pageSetup' and orientation)

0 commit comments

Comments
 (0)