Skip to content

Commit 9a09d4e

Browse files
authored
Merge pull request #108 from ghiscoding/chore/biome-html-format
chore: enable Biome html formatter
2 parents 650423d + 5fc42c1 commit 9a09d4e

20 files changed

Lines changed: 297 additions & 140 deletions

biome.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
}
88
}
99
},
10+
"html": {
11+
"formatter": {
12+
"enabled": true
13+
}
14+
},
1015
"formatter": {
1116
"enabled": true,
1217
"indentWidth": 2,
@@ -76,7 +81,6 @@
7681
"noCommaOperator": "error",
7782
"useNodejsImportProtocol": "error",
7883
"useAsConstAssertion": "error",
79-
"useNumericLiterals": "error",
8084
"useEnumInitializers": "error",
8185
"useSelfClosingElements": "error",
8286
"useConst": "error",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"packageManager": "pnpm@10.10.0",
5555
"devDependencies": {
56-
"@biomejs/biome": "^2.0.0-beta.4",
56+
"@biomejs/biome": "^2.0.0-beta.5",
5757
"@lerna-lite/cli": "^4.1.1",
5858
"@lerna-lite/publish": "^4.1.1",
5959
"@types/node": "^22.15.3",

packages/demo/src/examples/example-standalone-iife.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ <h5>Standalone JS (IIFE)</h5>
1313

1414
<div>
1515
<div class="mb-2">
16-
<button class="btn btn-success btn-sm" id="export"><i class="fa fa-download"></i> Excel Export</button>
16+
<button class="btn btn-success btn-sm" id="export">
17+
<i class="fa fa-download"></i>Excel Export
18+
</button>
1719
</div>
1820

1921
<div class="row">

packages/demo/src/examples/example01.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ <h2 class="bd-title">
66
<span class="float-end links">
77
Code <span class="fa fa-link"></span>
88
<span class="small">
9-
<a target="_blank"
10-
href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example01.html">html</a>
9+
<a
10+
target="_blank"
11+
href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example01.html"
12+
>html</a
13+
>
1114
|
12-
<a target="_blank"
13-
href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example01.ts">ts</a>
15+
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example01.ts"
16+
>ts</a
17+
>
1418
</span>
1519
</span>
1620
</h2>
@@ -20,7 +24,9 @@ <h2 class="bd-title">
2024

2125
<div>
2226
<div class="mb-2">
23-
<button id="export" class="btn btn-success btn-sm"><i class="fa fa-download"></i> Excel Export</button>
27+
<button id="export" class="btn btn-success btn-sm">
28+
<i class="fa fa-download"></i>Excel Export
29+
</button>
2430
</div>
2531

2632
<div class="row">
@@ -69,4 +75,4 @@ <h2 class="bd-title">
6975
</div>
7076
</div>
7177
</div>
72-
</div>
78+
</div>

packages/demo/src/examples/example02.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,30 @@ <h2 class="bd-title">
66
<span class="float-end links">
77
Code <span class="fa fa-link"></span>
88
<span class="small">
9-
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example02.html"
9+
<a
10+
target="_blank"
11+
href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example02.html"
1012
>html</a
1113
>
1214
|
13-
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example02.ts">ts</a>
15+
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example02.ts"
16+
>ts</a
17+
>
1418
</span>
1519
</span>
1620
</h2>
1721
<div class="demo-subtitle">
18-
The column <code>width</code> attribute will set a width. The <code>hidden</code> attribute will hide the column in Excel. The
19-
example below has the "Artist" column wider and the next column "Album" to be hidden in the exported Excel file.
22+
The column <code>width</code>attribute will set a width. The <code>hidden</code>attribute will hide the column in Excel. The example
23+
below has the "Artist" column wider and the next column "Album" to be hidden in the exported Excel file.
2024
</div>
2125
</div>
2226
</div>
2327

2428
<div>
2529
<div class="mb-2">
26-
<button id="export" class="btn btn-success btn-sm"><i class="fa fa-download"></i> Excel Export</button>
30+
<button id="export" class="btn btn-success btn-sm">
31+
<i class="fa fa-download"></i>Excel Export
32+
</button>
2733
</div>
2834

2935
<div class="row">

packages/demo/src/examples/example03.html

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,30 @@ <h2 class="bd-title">
66
<span class="float-end links">
77
Code <span class="fa fa-link"></span>
88
<span class="small">
9-
<a target="_blank"
10-
href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example03.html">html</a>
9+
<a
10+
target="_blank"
11+
href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example03.html"
12+
>html</a
13+
>
1114
|
12-
<a target="_blank"
13-
href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example03.ts">ts</a>
15+
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example03.ts"
16+
>ts</a
17+
>
1418
</span>
1519
</span>
1620
</h2>
1721
<div class="demo-subtitle">
18-
Set different row options via <code>setRowInstructions()</code> method. For example, we changed the row height
19-
of the first row and change the text style to italic.
22+
Set different row options via <code>setRowInstructions()</code>method. For example, we changed the row height of the first row and
23+
change the text style to italic.
2024
</div>
2125
</div>
2226
</div>
2327

2428
<div>
2529
<div class="mb-2">
26-
<button id="export" class="btn btn-success btn-sm"><i class="fa fa-download"></i> Excel Export</button>
30+
<button id="export" class="btn btn-success btn-sm">
31+
<i class="fa fa-download"></i>Excel Export
32+
</button>
2733
</div>
2834

2935
<div class="row">
@@ -72,4 +78,4 @@ <h2 class="bd-title">
7278
</div>
7379
</div>
7480
</div>
75-
</div>
81+
</div>

packages/demo/src/examples/example04.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,30 @@ <h2 class="bd-title">
66
<span class="float-end links">
77
Code <span class="fa fa-link"></span>
88
<span class="small">
9-
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example04.html"
9+
<a
10+
target="_blank"
11+
href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example04.html"
1012
>html</a
1113
>
1214
|
13-
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example04.ts">ts</a>
15+
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example04.ts"
16+
>ts</a
17+
>
1418
</span>
1519
</span>
1620
</h2>
1721
<div class="demo-subtitle">
18-
Set different fonts and colors via the <code>createFormat()</code> method, we can provide an object with the <code>font</code> and
19-
<code>border</code> properties.
22+
Set different fonts and colors via the <code>createFormat()</code>method, we can provide an object with the <code>font</code>and
23+
<code>border</code>properties.
2024
</div>
2125
</div>
2226
</div>
2327

2428
<div>
2529
<div class="mb-2">
26-
<button id="export" class="btn btn-success btn-sm"><i class="fa fa-download"></i> Excel Export</button>
30+
<button id="export" class="btn btn-success btn-sm">
31+
<i class="fa fa-download"></i>Excel Export
32+
</button>
2733
</div>
2834

2935
<div class="row">

packages/demo/src/examples/example05.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,30 @@ <h2 class="bd-title">
66
<span class="float-end links">
77
Code <span class="fa fa-link"></span>
88
<span class="small">
9-
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example05.html"
9+
<a
10+
target="_blank"
11+
href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example05.html"
1012
>html</a
1113
>
1214
|
13-
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example05.ts">ts</a>
15+
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example05.ts"
16+
>ts</a
17+
>
1418
</span>
1519
</span>
1620
</h2>
1721
<div class="demo-subtitle">
18-
We can create custom format by using the <code>createFormat()</code> method, in this example we formatted the "Price" column as
22+
We can create custom format by using the <code>createFormat()</code>method, in this example we formatted the "Price" column as
1923
currency and the Modified Date is a Date format.
2024
</div>
2125
</div>
2226
</div>
2327

2428
<div>
2529
<div class="mb-2">
26-
<button id="export" class="btn btn-success btn-sm"><i class="fa fa-download"></i> Excel Export</button>
30+
<button id="export" class="btn btn-success btn-sm">
31+
<i class="fa fa-download"></i>Excel Export
32+
</button>
2733
</div>
2834

2935
<div class="row">

packages/demo/src/examples/example06.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ <h2 class="bd-title">
66
<span class="float-end links">
77
Code <span class="fa fa-link"></span>
88
<span class="small">
9-
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example06.html"
9+
<a
10+
target="_blank"
11+
href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example06.html"
1012
>html</a
1113
>
1214
|
13-
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example06.ts">ts</a>
15+
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example06.ts"
16+
>ts</a
17+
>
1418
</span>
1519
</span>
1620
</h2>
@@ -21,7 +25,9 @@ <h2 class="bd-title">
2125
</div>
2226

2327
<div class="mb-2">
24-
<button id="export" class="btn btn-success btn-sm"><i class="fa fa-download"></i> Excel Export</button>
28+
<button id="export" class="btn btn-success btn-sm">
29+
<i class="fa fa-download"></i>Excel Export
30+
</button>
2531
</div>
2632

2733
<div class="row">

packages/demo/src/examples/example07.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,29 @@ <h2 class="bd-title">
66
<span class="float-end links">
77
Code <span class="fa fa-link"></span>
88
<span class="small">
9-
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example07.html"
9+
<a
10+
target="_blank"
11+
href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example07.html"
1012
>html</a
1113
>
1214
|
13-
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example07.ts">ts</a>
15+
<a target="_blank" href="https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/demo/src/examples/example07.ts"
16+
>ts</a
17+
>
1418
</span>
1519
</span>
1620
</h2>
1721
<div class="demo-subtitle">
18-
Set different background filling by using <code>fill</code> property which accepts a wide range of options like background color
19-
type of gradient or pattern and different colors.
22+
Set different background filling by using <code>fill</code>property which accepts a wide range of options like background color type
23+
of gradient or pattern and different colors.
2024
</div>
2125
</div>
2226
</div>
2327

2428
<div class="mb-2">
25-
<button id="export" class="btn btn-success btn-sm"><i class="fa fa-download"></i> Excel Export</button>
29+
<button id="export" class="btn btn-success btn-sm">
30+
<i class="fa fa-download"></i>Excel Export
31+
</button>
2632
</div>
2733

2834
<div class="row">

0 commit comments

Comments
 (0)