Skip to content

Commit 8979b85

Browse files
committed
npm run format
1 parent 504a138 commit 8979b85

16 files changed

+40
-37
lines changed

src/block/Pack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const packing = (packs: Pack[], row: Row): Pack[] => {
2222
type: /^\s*code:/.test(row.text)
2323
? "codeBlock"
2424
: /^\s*table:/.test(row.text)
25-
? "table"
26-
: "line",
25+
? "table"
26+
: "line",
2727
rows: [row],
2828
});
2929

src/block/Table.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export const convertToTable = (pack: TablePack): Table => {
3737
nested: false,
3838
quoted: false,
3939
context: "table",
40-
})
41-
)
40+
}),
41+
),
4242
),
4343
};
4444
};

src/block/node/CommandLineNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const commandLineRegExp = /^[$%] .+$/;
99

1010
const createCommandLineNode: NodeCreator<CommandLineNode | PlainNode> = (
1111
raw: string,
12-
opts
12+
opts,
1313
) => {
1414
if (opts.context === "table") {
1515
return createPlainNode(raw, opts);
@@ -34,5 +34,5 @@ export const CommandLineNodeParser: NodeParser = createNodeParser(
3434
parseOnNested: false,
3535
parseOnQuoted: false,
3636
patterns: [commandLineRegExp],
37-
}
37+
},
3838
);

src/block/node/DecorationNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export type Decoration = Exclude<DecorationChar, "*"> | AsteriskDecorationChar;
5050

5151
const createDecorationNode: NodeCreator<DecorationNode | PlainNode> = (
5252
raw,
53-
opts
53+
opts,
5454
) => {
5555
if (opts.context === "table") {
5656
return createPlainNode(raw, opts);
@@ -84,5 +84,5 @@ export const DecorationNodeParser: NodeParser = createNodeParser(
8484
parseOnNested: false,
8585
parseOnQuoted: true,
8686
patterns: [decorationRegExp],
87-
}
87+
},
8888
);

src/block/node/ExternalLinkNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const httpRegExp = /https?:\/\/[^\s]+/;
1212

1313
const createExternalLinkNode: NodeCreator<LinkNode | PlainNode> = (
1414
raw,
15-
opts
15+
opts,
1616
) => {
1717
if (opts.context === "table") {
1818
return createPlainNode(raw, opts);
@@ -55,5 +55,5 @@ export const ExternalLinkNodeParser: NodeParser = createNodeParser(
5555
bracketedUrlRegExp,
5656
httpRegExp,
5757
],
58-
}
58+
},
5959
);

src/block/node/GoogleMapNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const parseCoordinate: (format: string) => Coordinate = (format) => {
2525

2626
const createGoogleMapNode: NodeCreator<GoogleMapNode | PlainNode> = (
2727
raw,
28-
opts
28+
opts,
2929
) => {
3030
if (opts.context === "table") {
3131
return createPlainNode(raw, opts);
@@ -45,7 +45,7 @@ const createGoogleMapNode: NodeCreator<GoogleMapNode | PlainNode> = (
4545
const url =
4646
place !== ""
4747
? `https://www.google.com/maps/place/${encodeURIComponent(
48-
place
48+
place,
4949
)}/@${latitude},${longitude},${zoom}z`
5050
: `https://www.google.com/maps/@${latitude},${longitude},${zoom}z`;
5151

src/block/node/HelpfeelNode.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import type { NodeCreator } from "./creator";
66

77
const helpfeelRegExp = /^\? .+$/;
88

9-
const createHelpfeelNode: NodeCreator<HelpfeelNode | PlainNode> = (raw, opts) =>
9+
const createHelpfeelNode: NodeCreator<HelpfeelNode | PlainNode> = (
10+
raw,
11+
opts,
12+
) =>
1013
opts.context === "table"
1114
? createPlainNode(raw, opts)
1215
: [

src/block/node/IconNode.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import type { NodeCreator } from "./creator";
77
const iconRegExp = /\[[^[\]]*\.icon(?:\*[1-9]\d*)?\]/;
88

99
export function generateIconNodeCreator(
10-
type: IconNode["type"]
10+
type: IconNode["type"],
1111
): NodeCreator<IconNode>;
1212
export function generateIconNodeCreator(
13-
type: StrongIconNode["type"]
13+
type: StrongIconNode["type"],
1414
): NodeCreator<StrongIconNode | PlainNode>;
1515
export function generateIconNodeCreator(
16-
type: (IconNode | StrongIconNode)["type"]
16+
type: (IconNode | StrongIconNode)["type"],
1717
): NodeCreator<IconNode | StrongIconNode | PlainNode> {
1818
return (raw, opts) => {
1919
if (type === "strongIcon" && opts.context === "table") {

src/block/node/NumberListNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const numberListRegExp = /^[0-9]+\. .*$/;
99

1010
const createNumberListNode: NodeCreator<NumberListNode | PlainNode> = (
1111
raw,
12-
opts
12+
opts,
1313
) => {
1414
if (opts.context === "table") {
1515
return createPlainNode(raw, opts);

src/block/node/StrongImageNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const strongGyazoImageRegExp =
1010

1111
const createStrongImageNode: NodeCreator<StrongImageNode | PlainNode> = (
1212
raw,
13-
opts
13+
opts,
1414
) => {
1515
if (opts.context === "table") {
1616
return createPlainNode(raw, opts);

0 commit comments

Comments
 (0)