Skip to content

Commit e9a1e4e

Browse files
committed
npm run format
1 parent 17bc690 commit e9a1e4e

25 files changed

+71
-87
lines changed

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "10.0.0",
44
"type": "module",
55
"description": "parse Scrapbox notation to JavaScript Object",
6-
"files": ["dist"],
6+
"files": [
7+
"dist"
8+
],
79
"types": "./dist/index.d.ts",
810
"exports": {
911
".": "./dist/index.js",
@@ -31,7 +33,10 @@
3133
"type": "git",
3234
"url": "git+https://github.com/progfay/scrapbox-parser.git"
3335
},
34-
"keywords": ["scrapbox", "parser"],
36+
"keywords": [
37+
"scrapbox",
38+
"parser"
39+
],
3540
"author": "progfay",
3641
"license": "MIT",
3742
"bugs": {

src/block/Line.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { convertToNodes } from "./node/index.ts";
2-
3-
import type { Row } from "./Row.ts";
42
import type { Node } from "./node/type.ts";
3+
import type { Row } from "./Row.ts";
54

65
export interface LinePack {
76
type: "line";

src/block/Table.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { convertToNodes } from "./node/index.ts";
2-
3-
import type { Row } from "./Row.ts";
42
import type { Node } from "./node/type.ts";
3+
import type { Row } from "./Row.ts";
54

65
export interface TablePack {
76
type: "table";

src/block/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import { convertToCodeBlock } from "./CodeBlock.ts";
2-
import { convertToLine } from "./Line.ts";
3-
import { convertToTable } from "./Table.ts";
4-
import { convertToTitle } from "./Title.ts";
5-
61
import type { CodeBlock } from "./CodeBlock.ts";
2+
import { convertToCodeBlock } from "./CodeBlock.ts";
73
import type { Line } from "./Line.ts";
4+
import { convertToLine } from "./Line.ts";
85
import type { Pack } from "./Pack.ts";
96
import type { Table } from "./Table.ts";
7+
import { convertToTable } from "./Table.ts";
108
import type { Title } from "./Title.ts";
9+
import { convertToTitle } from "./Title.ts";
1110

1211
/**
1312
* Scrapbox block type

src/block/node/BlankNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
41
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
53
import type { NodeParser } from "./index.ts";
4+
import { createPlainNode } from "./PlainNode.ts";
65
import type { BlankNode, PlainNode } from "./type.ts";
76

87
const blankRegExp = /\[\s+\]/;

src/block/node/CodeNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
41
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
53
import type { NodeParser } from "./index.ts";
4+
import { createPlainNode } from "./PlainNode.ts";
65
import type { CodeNode, PlainNode } from "./type.ts";
76

87
const codeRegExp = /`.*?`/;

src/block/node/CommandLineNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
41
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
53
import type { NodeParser } from "./index.ts";
4+
import { createPlainNode } from "./PlainNode.ts";
65
import type { CommandLineNode, PlainNode } from "./type.ts";
76

87
const commandLineRegExp = /^[$%] .+$/;

src/block/node/DecorationNode.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
import { convertToNodes } from "./index.ts";
4-
51
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
63
import type { NodeParser } from "./index.ts";
4+
import { convertToNodes } from "./index.ts";
5+
import { createPlainNode } from "./PlainNode.ts";
76
import type { DecorationNode, PlainNode } from "./type.ts";
87

98
const decorationRegExp = /\[[!"#%&'()*+,\-./{|}<>_~]+ (?:\[[^[\]]+\]|[^\]])+\]/;

src/block/node/ExternalLinkNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
41
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
53
import type { NodeParser } from "./index.ts";
4+
import { createPlainNode } from "./PlainNode.ts";
65
import type { LinkNode, PlainNode } from "./type.ts";
76

87
const hrefFirstUrlRegExp = /\[https?:\/\/[^\s\]]+\s+[^\]]*[^\s]\]/;

src/block/node/FormulaNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
41
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
53
import type { NodeParser } from "./index.ts";
4+
import { createPlainNode } from "./PlainNode.ts";
65
import type { FormulaNode, PlainNode } from "./type.ts";
76

87
const formulaWithTailHalfSpaceRegExp = /\[\$ .+? \]/;

0 commit comments

Comments
 (0)