Skip to content

Commit 3c1e57f

Browse files
authored
fix(deps): update to structured-source@4 (#35)
1 parent 039e143 commit 3c1e57f

File tree

3 files changed

+164
-103
lines changed

3 files changed

+164
-103
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@
3333
],
3434
"devDependencies": {
3535
"@types/eslint": "^8.4.10",
36-
"@types/node": "^17.0.4",
36+
"@types/node": "^18.11.18",
3737
"@types/structured-source": "^3.0.0",
38-
"eslint": "8.5.0",
38+
"eslint": "8.31.0",
3939
"textlint-plugin-asciidoctor": "^1.1.0",
4040
"textlint-scripts": "^12.3.1",
41+
"textlint-tester": "^12.3.1",
4142
"ts-node": "^10.9.1",
42-
"typescript": "^4.5.4",
43-
"textlint-tester": "^12.3.1"
43+
"typescript": "^4.9.4"
4444
},
4545
"peerDependencies": {
4646
"eslint": "^8.0.0"
4747
},
4848
"dependencies": {
4949
"@textlint/types": "^12.3.0",
50-
"structured-source": "^3.0.2"
50+
"structured-source": "^4.0.0"
5151
}
5252
}

src/textlint-rule-eslint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"use strict";
33
import path from "path";
44
import type { TextlintRuleContext, TextlintRuleModule } from "@textlint/types"
5-
import Source from "structured-source";
5+
import { StructuredSource } from "structured-source";
66
import { ESLint } from "eslint";
77

88
const defaultOptions = {
@@ -48,7 +48,7 @@ const reporter: TextlintRuleModule<Options> = (context, options) => {
4848
}
4949
const raw = getSource(node);
5050
const code = getUntrimmedCode(node, raw);
51-
const source = new Source(code);
51+
const source = new StructuredSource(code);
5252
const resultLinting = await engine.lintText(code, {
5353
filePath: `test.${node.lang}`
5454
});

0 commit comments

Comments
 (0)