Skip to content

Commit 174ea0a

Browse files
authored
Merge pull request #65 from ghiscoding/chore/biome-import-extensions
chore: add import extension Biome rule
2 parents b2b236b + f017585 commit 174ea0a

File tree

6 files changed

+34
-21
lines changed

6 files changed

+34
-21
lines changed

biome.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
"node_modules/**"
4747
],
4848
"rules": {
49+
"correctness": {
50+
"useImportExtensions": "error"
51+
},
4952
"recommended": true,
5053
"complexity": {
5154
"noForEach": "off",

packages/demo/src/app-routing.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import Example01 from './examples/example01';
2-
import Example02 from './examples/example02';
3-
import Example03 from './examples/example03';
4-
import Example04 from './examples/example04';
5-
import Example05 from './examples/example05';
6-
import Example06 from './examples/example06';
7-
import Example07 from './examples/example07';
8-
import Example08 from './examples/example08';
9-
import Example09 from './examples/example09';
10-
import Example10 from './examples/example10';
11-
import Example11 from './examples/example11';
12-
import Example12 from './examples/example12';
13-
import GettingStarted from './getting-started';
1+
import Example01 from './examples/example01.js';
2+
import Example02 from './examples/example02.js';
3+
import Example03 from './examples/example03.js';
4+
import Example04 from './examples/example04.js';
5+
import Example05 from './examples/example05.js';
6+
import Example06 from './examples/example06.js';
7+
import Example07 from './examples/example07.js';
8+
import Example08 from './examples/example08.js';
9+
import Example09 from './examples/example09.js';
10+
import Example10 from './examples/example10.js';
11+
import Example11 from './examples/example11.js';
12+
import Example12 from './examples/example12.js';
13+
import GettingStarted from './getting-started.js';
1414

1515
export const navbarRouting = [
1616
{ name: 'getting-started', view: '/src/getting-started.html', viewModel: GettingStarted, title: 'Getting Started' },

packages/demo/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'bootstrap';
22
import 'bootstrap/dist/css/bootstrap.min.css';
33
import 'font-awesome/css/font-awesome.css';
44

5-
import { exampleRouting, navbarRouting } from './app-routing';
5+
import { exampleRouting, navbarRouting } from './app-routing.js';
66
import mainHtml from './main.html?raw';
77
import './style.scss';
88

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"linter": {
4+
"rules": {
5+
"correctness": {
6+
"useImportExtensions": "off"
7+
}
8+
}
9+
}
10+
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { describe, expect, test } from 'vitest';
22

3-
import { createWorkbook } from '../factory';
4-
import { Workbook } from '../Excel/Workbook';
5-
import { Table } from '../Excel/Table';
6-
import { Drawings } from '../Excel/Drawings';
7-
import { Positioning } from '../Excel/Positioning';
8-
import { Picture } from '../Excel/Drawing/Picture';
3+
import { createWorkbook } from '../factory.js';
4+
import { Workbook } from '../Excel/Workbook.js';
5+
import { Table } from '../Excel/Table.js';
6+
import { Drawings } from '../Excel/Drawings.js';
7+
import { Positioning } from '../Excel/Positioning.js';
8+
import { Picture } from '../Excel/Drawing/Picture.js';
99

1010
describe('Excel-Builder-Vanilla', () => {
1111
const originalData = [

packages/excel-builder-vanilla/src/__tests__/factory.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { strFromU8 } from 'fflate';
22
import { beforeEach, describe, expect, it, vi } from 'vitest';
33

4-
import { createExcelFile, createWorkbook, downloadExcelFile } from '../factory';
4+
import { createExcelFile, createWorkbook, downloadExcelFile } from '../factory.js';
55

66
describe('ExcelExportService', () => {
77
let mockExcelBlob: Blob;

0 commit comments

Comments
 (0)