Skip to content

Commit cd057b4

Browse files
committed
refactor: minor improvements
1 parent e6fc0c2 commit cd057b4

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

packages/utilities/kit/docs/@eslint-react/namespaces/JsxRuntime/interfaces/JsxRuntimeAnnotation.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@
88

99
## Properties
1010

11-
### jsx
11+
### jsx?
1212

13-
> **jsx**: `undefined` \| `string`
13+
> `optional` **jsx**: `string`
1414
1515
***
1616

17-
### jsxFrag
17+
### jsxFrag?
1818

19-
> **jsxFrag**: `undefined` \| `string`
19+
> `optional` **jsxFrag**: `string`
2020
2121
***
2222

23-
### jsxImportSource
23+
### jsxImportSource?
2424

25-
> **jsxImportSource**: `undefined` \| `string`
25+
> `optional` **jsxImportSource**: `string`
2626
2727
***
2828

29-
### jsxRuntime
29+
### jsxRuntime?
3030

31-
> **jsxRuntime**: `undefined` \| `string`
31+
> `optional` **jsxRuntime**: `string`

packages/utilities/kit/src/JsxRuntime/JsxRuntimeAnnotation.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type { _ } from "@eslint-react/eff";
12
import type { RuleContext } from "../Rule";
2-
import { _ } from "@eslint-react/eff";
33

44
/**
55
* Regular expression for matching a `@jsx` annotation comment.
@@ -22,19 +22,14 @@ export const RE_JSX_RT_ANNOTATION_JSX_RUNTIME = /@jsxRuntime\s+(\S+)/u;
2222
export const RE_JSX_RT_ANNOTATION_JSX_IMPORT_SOURCE = /@jsxImportSource\s+(\S+)/u;
2323

2424
export interface JsxRuntimeAnnotation {
25-
jsx: _ | string;
26-
jsxFrag: _ | string;
27-
jsxImportSource: _ | string;
28-
jsxRuntime: _ | string;
25+
jsx?: _ | string;
26+
jsxFrag?: _ | string;
27+
jsxImportSource?: _ | string;
28+
jsxRuntime?: _ | string;
2929
}
3030

3131
export function make(): JsxRuntimeAnnotation {
32-
return {
33-
jsx: _,
34-
jsxFrag: _,
35-
jsxImportSource: _,
36-
jsxRuntime: _,
37-
};
32+
return {};
3833
}
3934

4035
/**

0 commit comments

Comments
 (0)