Skip to content

Commit 73c7d31

Browse files
update deps (#162)
* update deps * lint fixes * run api extractor * fix coverage
1 parent 7e53aec commit 73c7d31

19 files changed

Lines changed: 5031 additions & 7768 deletions

.eslintignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 63 deletions
This file was deleted.

eslint.config.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import pluginMisskey from '@misskey-dev/eslint-plugin';
2+
import tsParser from '@typescript-eslint/parser';
3+
4+
//@ts-check
5+
/** @type {import('eslint').Linter.Config[]} */
6+
export default [ // eslint-disable-line import/no-default-export
7+
...pluginMisskey.configs['recommended'],
8+
{
9+
ignores: [
10+
'**/node_modules',
11+
'src/@types/package.json.d.ts',
12+
'built',
13+
'vitest.config.ts',
14+
'test',
15+
'test-d',
16+
],
17+
},
18+
{
19+
files: ['**/*.ts', '**/*.tsx'],
20+
languageOptions: {
21+
parserOptions: {
22+
parser: tsParser,
23+
project: ['./tsconfig.json', './test/tsconfig.json'],
24+
sourceType: 'module',
25+
tsConfigRootDir: import.meta.dirname,
26+
},
27+
},
28+
},
29+
{
30+
files: ['**/*.js', '**/*.cjs'],
31+
rules: {
32+
'@typescript-eslint/no-var-requires': 'off',
33+
},
34+
},
35+
];

etc/mfm-js.api.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@
55
```ts
66

77
// @public (undocumented)
8-
export const BOLD: (children: MfmInline[]) => NodeType<'bold'>;
8+
export const BOLD: (children: MfmInline[]) => NodeType<"bold">;
99

1010
// @public (undocumented)
11-
export const CENTER: (children: MfmInline[]) => NodeType<'center'>;
11+
export const CENTER: (children: MfmInline[]) => NodeType<"center">;
1212

1313
// @public (undocumented)
14-
export const CODE_BLOCK: (code: string, lang: string | null) => NodeType<'blockCode'>;
14+
export const CODE_BLOCK: (code: string, lang: string | null) => NodeType<"blockCode">;
1515

1616
// @public (undocumented)
17-
export const EMOJI_CODE: (name: string) => NodeType<'emojiCode'>;
17+
export const EMOJI_CODE: (name: string) => NodeType<"emojiCode">;
1818

1919
// @public (undocumented)
2020
export function extract(nodes: MfmNode[], predicate: (node: MfmNode) => boolean): MfmNode[];
2121

2222
// @public (undocumented)
23-
export const FN: (name: string, args: MfmFn['props']['args'], children: MfmFn['children']) => NodeType<'fn'>;
23+
export const FN: (name: string, args: MfmFn["props"]["args"], children: MfmFn["children"]) => NodeType<"fn">;
2424

2525
// @public (undocumented)
26-
export const HASHTAG: (value: string) => NodeType<'hashtag'>;
26+
export const HASHTAG: (value: string) => NodeType<"hashtag">;
2727

2828
// @public (undocumented)
29-
export const INLINE_CODE: (code: string) => NodeType<'inlineCode'>;
29+
export const INLINE_CODE: (code: string) => NodeType<"inlineCode">;
3030

3131
// @public (undocumented)
3232
export function inspect(node: MfmNode, action: (node: MfmNode) => void): void;
@@ -35,19 +35,19 @@ export function inspect(node: MfmNode, action: (node: MfmNode) => void): void;
3535
export function inspect(nodes: MfmNode[], action: (node: MfmNode) => void): void;
3636

3737
// @public (undocumented)
38-
export const ITALIC: (children: MfmInline[]) => NodeType<'italic'>;
38+
export const ITALIC: (children: MfmInline[]) => NodeType<"italic">;
3939

4040
// @public (undocumented)
41-
export const LINK: (silent: boolean, url: string, children: MfmInline[]) => NodeType<'link'>;
41+
export const LINK: (silent: boolean, url: string, children: MfmInline[]) => NodeType<"link">;
4242

4343
// @public (undocumented)
44-
export const MATH_BLOCK: (formula: string) => NodeType<'mathBlock'>;
44+
export const MATH_BLOCK: (formula: string) => NodeType<"mathBlock">;
4545

4646
// @public (undocumented)
47-
export const MATH_INLINE: (formula: string) => NodeType<'mathInline'>;
47+
export const MATH_INLINE: (formula: string) => NodeType<"mathInline">;
4848

4949
// @public (undocumented)
50-
export const MENTION: (username: string, host: string | null, acct: string) => NodeType<'mention'>;
50+
export const MENTION: (username: string, host: string | null, acct: string) => NodeType<"mention">;
5151

5252
// @public (undocumented)
5353
export type MfmBlock = MfmQuote | MfmSearch | MfmCodeBlock | MfmMathBlock | MfmCenter;
@@ -235,7 +235,7 @@ export type MfmUrl = {
235235
};
236236

237237
// @public (undocumented)
238-
export const N_URL: (value: string, brackets?: boolean) => NodeType<'url'>;
238+
export const N_URL: (value: string, brackets?: boolean) => NodeType<"url">;
239239

240240
// @public (undocumented)
241241
export type NodeType<T extends MfmNode['type']> = T extends 'quote' ? MfmQuote : T extends 'search' ? MfmSearch : T extends 'blockCode' ? MfmCodeBlock : T extends 'mathBlock' ? MfmMathBlock : T extends 'center' ? MfmCenter : T extends 'unicodeEmoji' ? MfmUnicodeEmoji : T extends 'emojiCode' ? MfmEmojiCode : T extends 'bold' ? MfmBold : T extends 'small' ? MfmSmall : T extends 'italic' ? MfmItalic : T extends 'strike' ? MfmStrike : T extends 'inlineCode' ? MfmInlineCode : T extends 'mathInline' ? MfmMathInline : T extends 'mention' ? MfmMention : T extends 'hashtag' ? MfmHashtag : T extends 'url' ? MfmUrl : T extends 'link' ? MfmLink : T extends 'fn' ? MfmFn : T extends 'plain' ? MfmPlain : T extends 'text' ? MfmText : never;
@@ -249,22 +249,22 @@ export function parse(input: string, opts?: Partial<{
249249
export function parseSimple(input: string): MfmSimpleNode[];
250250

251251
// @public (undocumented)
252-
export const PLAIN: (text: string) => NodeType<'plain'>;
252+
export const PLAIN: (text: string) => NodeType<"plain">;
253253

254254
// @public (undocumented)
255-
export const QUOTE: (children: MfmNode[]) => NodeType<'quote'>;
255+
export const QUOTE: (children: MfmNode[]) => NodeType<"quote">;
256256

257257
// @public (undocumented)
258-
export const SEARCH: (query: string, content: string) => NodeType<'search'>;
258+
export const SEARCH: (query: string, content: string) => NodeType<"search">;
259259

260260
// @public (undocumented)
261-
export const SMALL: (children: MfmInline[]) => NodeType<'small'>;
261+
export const SMALL: (children: MfmInline[]) => NodeType<"small">;
262262

263263
// @public (undocumented)
264-
export const STRIKE: (children: MfmInline[]) => NodeType<'strike'>;
264+
export const STRIKE: (children: MfmInline[]) => NodeType<"strike">;
265265

266266
// @public (undocumented)
267-
export const TEXT: (value: string) => NodeType<'text'>;
267+
export const TEXT: (value: string) => NodeType<"text">;
268268

269269
// @public (undocumented)
270270
function toString_2(tree: MfmNode[]): string;
@@ -274,7 +274,7 @@ function toString_2(node: MfmNode): string;
274274
export { toString_2 as toString }
275275

276276
// @public (undocumented)
277-
export const UNI_EMOJI: (value: string) => NodeType<'unicodeEmoji'>;
277+
export const UNI_EMOJI: (value: string) => NodeType<"unicodeEmoji">;
278278

279279
// (No @packageDocumentation comment for this package)
280280

0 commit comments

Comments
 (0)