Skip to content

Commit 2a15577

Browse files
committed
Update dev-dependencies
1 parent 6252e5c commit 2a15577

File tree

7 files changed

+17
-7
lines changed

7 files changed

+17
-7
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable-next-line @typescript-eslint/consistent-type-imports -- fix in major */
12
import {XAttributes, XChild, XResult} from './index.js'
23

34
export namespace JSX {
@@ -11,6 +12,8 @@ export namespace JSX {
1112
*/
1213
type IntrinsicAttributes = never
1314

15+
/* eslint-disable @typescript-eslint/consistent-type-definitions -- interfaces are required here */
16+
1417
/**
1518
* This defines the prop types for known elements.
1619
*
@@ -39,4 +42,6 @@ export namespace JSX {
3942
*/
4043
children?: never
4144
}
45+
46+
/* eslint-enable @typescript-eslint/consistent-type-definitions */
4247
}

lib/jsx-classic.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable-next-line @typescript-eslint/consistent-type-imports -- fix in major */
12
import {XAttributes, XChild, XResult} from './index.js'
23

34
/**
@@ -16,6 +17,8 @@ export type Element = XResult
1617
*/
1718
export type IntrinsicAttributes = never
1819

20+
/* eslint-disable @typescript-eslint/consistent-type-definitions -- interfaces are required here */
21+
1922
/**
2023
* This defines the prop types for known elements.
2124
*
@@ -44,3 +47,5 @@ export interface ElementChildrenAttribute {
4447
*/
4548
[children]?: never
4649
}
50+
51+
/* eslint-enable @typescript-eslint/consistent-type-definitions */

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@
5555
"c8": "^7.0.0",
5656
"estree-util-build-jsx": "^2.0.0",
5757
"prettier": "^2.0.0",
58-
"remark-cli": "^10.0.0",
58+
"remark-cli": "^11.0.0",
5959
"remark-preset-wooorm": "^9.0.0",
6060
"rimraf": "^3.0.0",
6161
"tape": "^5.0.0",
62-
"tsd": "^0.20.0",
62+
"tsd": "^0.23.0",
6363
"type-coverage": "^2.0.0",
6464
"typescript": "^4.0.0",
6565
"unist-builder": "^3.0.0",
66-
"xo": "^0.49.0"
66+
"xo": "^0.52.0"
6767
},
6868
"scripts": {
6969
"prepack": "npm run build && npm run format",

test-d/automatic.tsx

Lines changed: 1 addition & 1 deletion
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 'xast'
5+
import type {Root, Element} from 'xast'
66
import {x} from '../index.js'
77
import {Fragment, jsx, jsxs} from '../jsx-runtime.js'
88

test-d/classic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* @jsx x */
22
/* @jsxFrag null */
33
import {expectType, expectError} from 'tsd'
4-
import {Root, Element} from 'xast'
4+
import type {Root, Element} from 'xast'
55
import {x} from '../index.js'
66

77
type Result = Element | Root

test-d/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {expectType, expectError} from 'tsd'
2-
import {Root, Element} from 'xast'
2+
import type {Root, Element} from 'xast'
33
import {x} from '../index.js'
44

55
expectType<Root>(x())

0 commit comments

Comments
 (0)