Skip to content

Commit 97b4636

Browse files
chore: Formatting
1 parent f8ec00d commit 97b4636

File tree

5 files changed

+171
-156
lines changed

5 files changed

+171
-156
lines changed

__tests__/cel.test.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, it, expect, beforeEach } from "vitest";
1+
import { beforeEach, describe, expect, it } from "vitest";
22
import { CelProgram } from "../src/index.js";
33

44
describe("CelProgram", () => {
@@ -13,15 +13,13 @@ describe("CelProgram", () => {
1313
});
1414

1515
it("should handle CEL map return values", async () => {
16-
const program = await CelProgram.compile('{"name": "test", "items": [1, 2, 3].map(i, {"id": i})}');
16+
const program = await CelProgram.compile(
17+
'{"name": "test", "items": [1, 2, 3].map(i, {"id": i})}',
18+
);
1719
const result = await program.execute({});
1820
expect(result).toEqual({
1921
name: "test",
20-
items: [
21-
{ id: 1 },
22-
{ id: 2 },
23-
{ id: 3 }
24-
]
22+
items: [{ id: 1 }, { id: 2 }, { id: 3 }],
2523
});
2624
});
2725

biome.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"enabled": true
55
},
66
"files": {
7-
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]
7+
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
8+
"ignore": ["index.js", "dist/**/*"]
89
},
910
"formatter": {
1011
"enabled": true,
@@ -15,7 +16,10 @@
1516
"linter": {
1617
"enabled": true,
1718
"rules": {
18-
"recommended": true
19+
"recommended": true,
20+
"suspicious": {
21+
"noExplicitAny": "off"
22+
}
1923
}
2024
}
2125
}

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/* auto-generated by NAPI-RS */
55

66
export declare class CelProgram {
7-
constructor()
8-
static compile(source: string): CelProgram
9-
execute(context: JsonValue): JsonValue
7+
constructor();
8+
static compile(source: string): CelProgram;
9+
execute(context: JsonValue): JsonValue;
1010
}

0 commit comments

Comments
 (0)