File tree 10 files changed +16
-14
lines changed
10 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 17
17
strategy :
18
18
matrix :
19
19
node :
20
- - lts/erbium
20
+ - lts/fermium
21
21
- node
Original file line number Diff line number Diff line change 1
- import { HProperties , HChild , HResult } from './core.js'
1
+ import type { HProperties , HChild , HResult } from './core.js'
2
2
3
3
export namespace JSX {
4
4
/**
@@ -18,7 +18,7 @@ export namespace JSX {
18
18
*
19
19
* This **must** be an interface.
20
20
*/
21
- // eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
21
+ // eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style, @typescript-eslint/consistent-type-definitions
22
22
interface IntrinsicElements {
23
23
[ name : string ] :
24
24
| HProperties
@@ -33,6 +33,7 @@ export namespace JSX {
33
33
/**
34
34
* The key of this interface defines as what prop children are passed.
35
35
*/
36
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
36
37
interface ElementChildrenAttribute {
37
38
/**
38
39
* Only the key matters, not the value.
Original file line number Diff line number Diff line change 1
- import { HProperties , HChild , HResult } from './core.js'
1
+ import type { HProperties , HChild , HResult } from './core.js'
2
2
3
3
/**
4
4
* This unique symbol is declared to specify the key on which JSX children are passed, without conflicting
@@ -23,7 +23,7 @@ export type IntrinsicAttributes = never
23
23
*
24
24
* This **must** be an interface.
25
25
*/
26
- // eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
26
+ // eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style, @typescript-eslint/consistent-type-definitions
27
27
export interface IntrinsicElements {
28
28
[ name : string ] :
29
29
| HProperties
@@ -38,6 +38,7 @@ export interface IntrinsicElements {
38
38
/**
39
39
* The key of this interface defines as what prop children are passed.
40
40
*/
41
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
41
42
export interface ElementChildrenAttribute {
42
43
/**
43
44
* Only the key matters, not the value.
Original file line number Diff line number Diff line change 72
72
"c8" : " ^7.0.0" ,
73
73
"estree-util-build-jsx" : " ^2.0.0" ,
74
74
"prettier" : " ^2.0.0" ,
75
- "remark-cli" : " ^10 .0.0" ,
75
+ "remark-cli" : " ^11 .0.0" ,
76
76
"remark-preset-wooorm" : " ^9.0.0" ,
77
77
"rimraf" : " ^3.0.0" ,
78
78
"svg-tag-names" : " ^3.0.0" ,
79
79
"tape" : " ^5.0.0" ,
80
- "tsd" : " ^0.19 .0" ,
80
+ "tsd" : " ^0.24 .0" ,
81
81
"type-coverage" : " ^2.0.0" ,
82
82
"typescript" : " ^4.0.0" ,
83
83
"unist-builder" : " ^3.0.0" ,
84
- "xo" : " ^0.48 .0"
84
+ "xo" : " ^0.52 .0"
85
85
},
86
86
"scripts" : {
87
87
"prepack" : " npm run build && npm run format" ,
Original file line number Diff line number Diff line change 2
2
/* @jsxImportSource .. */
3
3
4
4
import { expectType , expectError } from 'tsd'
5
- import { Root , Element } from 'hast'
5
+ import type { Root , Element } from 'hast'
6
6
import { h } from '../index.js'
7
7
import { Fragment , jsx , jsxs } from '../jsx-runtime.js'
8
8
Original file line number Diff line number Diff line change 2
2
/* @jsxImportSource ../svg */
3
3
4
4
import { expectType , expectError } from 'tsd'
5
- import { Root , Element } from 'hast'
5
+ import type { Root , Element } from 'hast'
6
6
import { s } from '../index.js'
7
7
8
8
type Result = Element | Root
Original file line number Diff line number Diff line change 1
1
/* @jsx h */
2
2
/* @jsxFrag null */
3
3
import { expectType , expectError } from 'tsd'
4
- import { Root , Element } from 'hast'
4
+ import type { Root , Element } from 'hast'
5
5
import { h } from '../index.js'
6
6
7
7
type Result = Element | Root
Original file line number Diff line number Diff line change 1
1
/* @jsx s */
2
2
/* @jsxFrag null */
3
3
import { expectType , expectError } from 'tsd'
4
- import { Root , Element } from 'hast'
4
+ import type { Root , Element } from 'hast'
5
5
import { s } from '../index.js'
6
6
7
7
type Result = Element | Root
Original file line number Diff line number Diff line change 1
1
import { expectType } from 'tsd'
2
- import { Root } from 'hast'
2
+ import type { Root } from 'hast'
3
3
import { h as hFromRoot } from '../html.js'
4
4
import { s as sFromRoot } from '../svg.js'
5
5
import { h as hFromIndex , s as sFromIndex } from '../index.js'
Original file line number Diff line number Diff line change 1
1
import { expectType , expectError } from 'tsd'
2
- import { Root , Element } from 'hast'
2
+ import type { Root , Element } from 'hast'
3
3
import { h , s } from '../index.js'
4
4
import { h as hFromRoot } from '../html.js'
5
5
import { s as sFromRoot } from '../svg.js'
You can’t perform that action at this time.
0 commit comments