Skip to content

Commit 6c1b3a9

Browse files
committed
chore: up
1 parent f558d6a commit 6c1b3a9

File tree

6 files changed

+10
-15
lines changed

6 files changed

+10
-15
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"@eslint/js": "^9.19.0",
3131
"@types/debug": "^4.1.7",
3232
"@types/estree": "^1.0.0",
33-
"@types/fs-extra": "^11.0.4",
3433
"@types/node": "^18.8.4",
3534
"@types/semver": "^7.3.12",
3635
"@typescript-eslint/eslint-plugin": "^8.22.0",

test/define-custom-blocks-visitor.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
//------------------------------------------------------------------------------
88

99
import type { ESLint, Rule } from "eslint"
10-
import type { VElement } from "../src/ast"
10+
import type { Location, VElement } from "../src/ast"
1111
import type { CustomBlockContext } from "../src/sfc/custom-block"
1212
import { assert, describe, it } from "vitest"
1313
import { Linter } from "eslint"
1414
import { builtinRules } from "eslint/use-at-your-own-risk"
1515
import jsonParser from "jsonc-eslint-parser"
16-
// @ts-expect-error -- ignore
1716
import * as espree from "espree"
1817
import * as parser from "../src"
1918
import type { Program } from "estree"
@@ -55,7 +54,7 @@ const noParsingErrorRule: Rule.RuleModule = {
5554
create(context) {
5655
const parseError = context.getSourceCode().parserServices.parseError
5756
if (parseError) {
58-
let loc = undefined
57+
let loc: Location | undefined = undefined
5958
if ("column" in parseError && "lineNumber" in parseError) {
6059
loc = {
6160
line: parseError.lineNumber,
@@ -79,7 +78,7 @@ const noParsingErrorRule2: Rule.RuleModule = {
7978
create(context: any) {
8079
const parseError = context.parserServices.parseError
8180
if (parseError) {
82-
let loc = undefined
81+
let loc: Location | undefined = undefined
8382
if ("column" in parseError && "lineNumber" in parseError) {
8483
loc = {
8584
line: parseError.lineNumber,

test/document-fragment.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
//------------------------------------------------------------------------------
44

55
import type { VDocumentFragment } from "../src/ast"
6-
import fs from "fs"
7-
import path from "path"
6+
import fs from "node:fs"
7+
import path from "node:path"
88
import { describe, it, assert } from "vitest"
99
import * as parser from "../src"
1010
import { replacer } from "./test-utils"

test/index.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
import type { Rule } from "eslint"
1212
import path from "node:path"
1313
import { describe, it, assert, beforeEach, afterEach } from "vitest"
14-
// @ts-expect-error -- ignore
15-
import * as tsParser from "@typescript-eslint/parser"
14+
import tsParser from "@typescript-eslint/parser"
1615
import fs from "fs-extra"
17-
import * as eslint from "eslint"
16+
import eslint from "eslint"
1817
import { parse, parseForESLint } from "../src"
1918
import * as parser from "../src"
2019
import type { Node, VAttribute, VElement, VText } from "../src/ast"

test/integrations.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
//------------------------------------------------------------------------------
44

55
import { assert, beforeAll, describe, it } from "vitest"
6-
import path from "path"
7-
import fs from "fs-extra"
6+
import path from "node:path"
7+
import fs from "node:fs"
88
import cp from "child_process"
99
import eslintCompat from "./lib/eslint-compat"
10-
import * as ESLintRaw from "eslint"
10+
import ESLintRaw from "eslint"
1111

1212
//------------------------------------------------------------------------------
1313
// Helpers
@@ -22,7 +22,6 @@ const FIXTURE_DIR = path.join(__dirname, "fixtures/integrations")
2222

2323
describe("Integration tests", () => {
2424
beforeAll(async () => {
25-
// @ts-expect-error -- ignore
2625
await import("ts-node/register")
2726
})
2827
for (const target of fs.readdirSync(FIXTURE_DIR)) {

test/parser-options-project.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { describe, it, assert } from "vitest"
22
import { parseForESLint } from "../src"
3-
// @ts-expect-error -- ignore
43
import * as espree from "espree"
54
import type { Linter } from "eslint"
65

0 commit comments

Comments
 (0)