Skip to content

Commit f235533

Browse files
authored
Merge pull request #1874 from progfay/renovate/biomejs-biome-2.x
chore(deps): update dependency @biomejs/biome to v2
2 parents 37137b9 + e9a1e4e commit f235533

27 files changed

+122
-127
lines changed

biome.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3-
"organizeImports": { "enabled": true },
3+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
44
"files": {
5-
"ignore": ["./dist", "./coverage"]
5+
"includes": ["**", "!dist", "!coverage"]
66
},
77
"linter": {
88
"enabled": true,
99
"rules": {
1010
"correctness": {
1111
"useImportExtensions": "error"
12+
},
13+
"style": {
14+
"noParameterAssign": "error",
15+
"useAsConstAssertion": "error",
16+
"useDefaultParameterLast": "error",
17+
"useEnumInitializers": "error",
18+
"useSelfClosingElements": "error",
19+
"useSingleVarDeclarator": "error",
20+
"noUnusedTemplateLiteral": "error",
21+
"useNumberNamespace": "error",
22+
"noInferrableTypes": "error",
23+
"noUselessElse": "error"
1224
}
1325
}
1426
},

package-lock.json

Lines changed: 36 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 3 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,15 +33,18 @@
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": {
3843
"url": "https://github.com/progfay/scrapbox-parser/issues"
3944
},
4045
"homepage": "https://github.com/progfay/scrapbox-parser#readme",
4146
"devDependencies": {
42-
"@biomejs/biome": "1.9.4",
47+
"@biomejs/biome": "2.0.0",
4348
"@types/node": "22.15.32",
4449
"tsdown": "0.12.8",
4550
"typescript": "5.8.3"

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

0 commit comments

Comments
 (0)