File tree Expand file tree Collapse file tree 10 files changed +16
-14
lines changed
Expand file tree Collapse file tree 10 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 1717 strategy :
1818 matrix :
1919 node :
20- - lts/erbium
20+ - lts/fermium
2121 - 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'
22
33export 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.
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'
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
2727export 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
4142export interface ElementChildrenAttribute {
4243 /**
4344 * Only the key matters, not the value.
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 22/* @jsxImportSource .. */
33
44import { expectType , expectError } from 'tsd'
5- import { Root , Element } from 'hast'
5+ import type { Root , Element } from 'hast'
66import { h } from '../index.js'
77import { Fragment , jsx , jsxs } from '../jsx-runtime.js'
88
Original file line number Diff line number Diff line change 22/* @jsxImportSource ../svg */
33
44import { expectType , expectError } from 'tsd'
5- import { Root , Element } from 'hast'
5+ import type { Root , Element } from 'hast'
66import { s } from '../index.js'
77
88type Result = Element | Root
Original file line number Diff line number Diff line change 11/* @jsx h */
22/* @jsxFrag null */
33import { expectType , expectError } from 'tsd'
4- import { Root , Element } from 'hast'
4+ import type { Root , Element } from 'hast'
55import { h } from '../index.js'
66
77type Result = Element | Root
Original file line number Diff line number Diff line change 11/* @jsx s */
22/* @jsxFrag null */
33import { expectType , expectError } from 'tsd'
4- import { Root , Element } from 'hast'
4+ import type { Root , Element } from 'hast'
55import { s } from '../index.js'
66
77type Result = Element | Root
Original file line number Diff line number Diff line change 11import { expectType } from 'tsd'
2- import { Root } from 'hast'
2+ import type { Root } from 'hast'
33import { h as hFromRoot } from '../html.js'
44import { s as sFromRoot } from '../svg.js'
55import { h as hFromIndex , s as sFromIndex } from '../index.js'
Original file line number Diff line number Diff line change 11import { expectType , expectError } from 'tsd'
2- import { Root , Element } from 'hast'
2+ import type { Root , Element } from 'hast'
33import { h , s } from '../index.js'
44import { h as hFromRoot } from '../html.js'
55import { s as sFromRoot } from '../svg.js'
You can’t perform that action at this time.
0 commit comments