Skip to content

Commit 8ab2c5f

Browse files
committed
Update dev-dependencies
1 parent 2f8c133 commit 8ab2c5f

File tree

10 files changed

+16
-14
lines changed

10 files changed

+16
-14
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
strategy:
1818
matrix:
1919
node:
20-
- lts/erbium
20+
- lts/fermium
2121
- node

lib/jsx-automatic.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {HProperties, HChild, HResult} from './core.js'
1+
import type {HProperties, HChild, HResult} from './core.js'
22

33
export namespace JSX {
44
/**
@@ -18,7 +18,7 @@ export namespace JSX {
1818
*
1919
* This **must** be an interface.
2020
*/
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
2222
interface IntrinsicElements {
2323
[name: string]:
2424
| HProperties
@@ -33,6 +33,7 @@ export namespace JSX {
3333
/**
3434
* The key of this interface defines as what prop children are passed.
3535
*/
36+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
3637
interface ElementChildrenAttribute {
3738
/**
3839
* Only the key matters, not the value.

lib/jsx-classic.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {HProperties, HChild, HResult} from './core.js'
1+
import type {HProperties, HChild, HResult} from './core.js'
22

33
/**
44
* 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
2323
*
2424
* This **must** be an interface.
2525
*/
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
2727
export interface IntrinsicElements {
2828
[name: string]:
2929
| HProperties
@@ -38,6 +38,7 @@ export interface IntrinsicElements {
3838
/**
3939
* The key of this interface defines as what prop children are passed.
4040
*/
41+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
4142
export interface ElementChildrenAttribute {
4243
/**
4344
* Only the key matters, not the value.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@
7272
"c8": "^7.0.0",
7373
"estree-util-build-jsx": "^2.0.0",
7474
"prettier": "^2.0.0",
75-
"remark-cli": "^10.0.0",
75+
"remark-cli": "^11.0.0",
7676
"remark-preset-wooorm": "^9.0.0",
7777
"rimraf": "^3.0.0",
7878
"svg-tag-names": "^3.0.0",
7979
"tape": "^5.0.0",
80-
"tsd": "^0.19.0",
80+
"tsd": "^0.24.0",
8181
"type-coverage": "^2.0.0",
8282
"typescript": "^4.0.0",
8383
"unist-builder": "^3.0.0",
84-
"xo": "^0.48.0"
84+
"xo": "^0.52.0"
8585
},
8686
"scripts": {
8787
"prepack": "npm run build && npm run format",

test-d/automatic-h.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* @jsxImportSource .. */
33

44
import {expectType, expectError} from 'tsd'
5-
import {Root, Element} from 'hast'
5+
import type {Root, Element} from 'hast'
66
import {h} from '../index.js'
77
import {Fragment, jsx, jsxs} from '../jsx-runtime.js'
88

test-d/automatic-s.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* @jsxImportSource ../svg */
33

44
import {expectType, expectError} from 'tsd'
5-
import {Root, Element} from 'hast'
5+
import type {Root, Element} from 'hast'
66
import {s} from '../index.js'
77

88
type Result = Element | Root

test-d/classic-h.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* @jsx h */
22
/* @jsxFrag null */
33
import {expectType, expectError} from 'tsd'
4-
import {Root, Element} from 'hast'
4+
import type {Root, Element} from 'hast'
55
import {h} from '../index.js'
66

77
type Result = Element | Root

test-d/classic-s.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* @jsx s */
22
/* @jsxFrag null */
33
import {expectType, expectError} from 'tsd'
4-
import {Root, Element} from 'hast'
4+
import type {Root, Element} from 'hast'
55
import {s} from '../index.js'
66

77
type Result = Element | Root

test-d/files.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {expectType} from 'tsd'
2-
import {Root} from 'hast'
2+
import type {Root} from 'hast'
33
import {h as hFromRoot} from '../html.js'
44
import {s as sFromRoot} from '../svg.js'
55
import {h as hFromIndex, s as sFromIndex} from '../index.js'

test-d/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {expectType, expectError} from 'tsd'
2-
import {Root, Element} from 'hast'
2+
import type {Root, Element} from 'hast'
33
import {h, s} from '../index.js'
44
import {h as hFromRoot} from '../html.js'
55
import {s as sFromRoot} from '../svg.js'

0 commit comments

Comments
 (0)