Skip to content

Commit 096babb

Browse files
author
Leon Si
committed
chore: lint
1 parent ddd1723 commit 096babb

File tree

8 files changed

+17
-12
lines changed

8 files changed

+17
-12
lines changed

src/bin/cli.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import * as fs from 'node:fs';
21
import { program } from 'commander';
2+
import * as fs from 'node:fs';
3+
34
import { renderFile } from '~/utils/ets.js';
45

56
program

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { compile, render, renderFile } from './utils/ets.js';
21
export type { ETSOptions } from './types.js';
2+
export { compile, render, renderFile } from './utils/ets.js';

src/utils/ets.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import escapeStringRegexp from 'escape-string-regexp';
22
import LRUCache from 'lru-cache';
33
import { outdent } from 'outdent';
44
import xmlEscape from 'xml-escape';
5+
56
import type {
67
ClientFunction,
78
EscapeCallback,

test/bin/projects.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import * as fs from 'node:fs';
21
import { join } from 'desm';
2+
import * as fs from 'node:fs';
3+
34
import * as ets from '~/index.js';
45

56
const output = await ets.render(

test/fixtures/example-project/render.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { createRequire } from 'node:module';
2-
import * as ets from 'embedded-ts';
31
import { join } from 'desm';
2+
import * as ets from 'embedded-ts';
3+
import { createRequire } from 'node:module';
44

55
const require = createRequire(import.meta.url);
66

test/suites/ets.test.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import * as process from 'node:process';
2-
import * as path from 'node:path';
3-
import * as fs from 'node:fs';
4-
import { describe, test, expect, afterEach, beforeAll } from 'vitest';
51
import { join } from 'desm';
2+
import * as fs from 'node:fs';
3+
import * as path from 'node:path';
4+
import * as process from 'node:process';
5+
import { afterEach, beforeAll, describe, expect, test } from 'vitest';
6+
67
import * as ets from '~/index.js';
78

89
const users = [{ name: 'geddy' }, { name: 'neil' }, { name: 'alex' }];

test/suites/examples.test.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import * as path from 'node:path';
1+
import { join } from 'desm';
22
import * as fs from 'node:fs';
3+
import * as path from 'node:path';
34
import { test } from 'vitest';
4-
import { join } from 'desm';
5+
56
import * as ets from '~/index.js';
67

78
const fixturesPath = join(import.meta.url, '../fixtures');

vitest.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineConfig } from 'vitest/config';
21
import { join } from 'desm';
2+
import { defineConfig } from 'vitest/config';
33

44
export default defineConfig({
55
resolve: {

0 commit comments

Comments
 (0)