Skip to content

Commit c58699b

Browse files
committed
chore: lint
1 parent f9b6296 commit c58699b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/proxy/_utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function literalToAst(value: any): ESNode {
5151
}
5252
if (value === null) {
5353
// eslint-disable-next-line unicorn/no-null
54-
return recast.types.builders.literal(null) as any;
54+
return recast.types.builders.literal(null) as any;
5555
}
5656
if (Array.isArray(value)) {
5757
return recast.types.builders.arrayExpression(

test/utils.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ import { describe, it, expect } from "vitest";
22
import { print } from "recast";
33
import { literalToAst } from "../src/proxy/_utils";
44

5-
describe('literalToAst', () => {
5+
describe("literalToAst", () => {
66
// eslint-disable-next-line unicorn/consistent-function-scoping
77
function run(value: any) {
88
return print(literalToAst(value)).code;
99
}
10-
11-
it('should work', () => {
12-
expect(run(1)).toMatchInlineSnapshot('"1"')
13-
expect(run(true)).toMatchInlineSnapshot('"true"')
14-
expect(run(undefined)).toMatchInlineSnapshot('"undefined"')
10+
11+
it("should work", () => {
12+
expect(run(1)).toMatchInlineSnapshot('"1"');
13+
expect(run(true)).toMatchInlineSnapshot('"true"');
14+
expect(run(undefined)).toMatchInlineSnapshot('"undefined"');
1515
// eslint-disable-next-line unicorn/no-null
16-
expect(run(null)).toMatchInlineSnapshot('"null"')
17-
expect(run([undefined, 1, { foo:'bar' }])).toMatchInlineSnapshot(`
16+
expect(run(null)).toMatchInlineSnapshot('"null"');
17+
expect(run([undefined, 1, { foo: "bar" }])).toMatchInlineSnapshot(`
1818
"[undefined, 1, {
1919
foo: \\"bar\\"
2020
}]"
21-
`)
22-
})
23-
})
21+
`);
22+
});
23+
});

0 commit comments

Comments
 (0)