Skip to content

Commit 4e4fb8c

Browse files
chore: fix lint (#16)
* chore(release): release 0.1.3 * chore: fix lint
1 parent 51a4c87 commit 4e4fb8c

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

__tests__/constant.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { describe, expect, it } from 'vitest';
2-
import {
3-
ANTV_LIBRARY_META,
4-
CONTEXT7_TOKENS,
5-
} from '../src/constant';
2+
import { ANTV_LIBRARY_META, CONTEXT7_TOKENS } from '../src/constant';
63

74
// Helper function to check if a library is valid
85
function isValidLibrary(library: string): boolean {

src/types.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@
77
* Defines the available libraries in the AntV ecosystem.
88
* These libraries are used to fetch documentation and provide context for the AntV Assistant tool.
99
*/
10-
export type AntVLibrary = 'g2' | 'g6' | 'l7' | 'x6' | 'f2' | 's2' | 'g' | 'ava' | 'adc';
10+
export type AntVLibrary =
11+
| 'g2'
12+
| 'g6'
13+
| 'l7'
14+
| 'x6'
15+
| 'f2'
16+
| 's2'
17+
| 'g'
18+
| 'ava'
19+
| 'adc';
1120

1221
export type AntVConfig = {
1322
id: AntVLibrary;

0 commit comments

Comments
 (0)