Skip to content

Commit f82aca9

Browse files
committed
chore: fix type error
1 parent 03a2193 commit f82aca9

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

lib/rules/vue-custom-block/no-parsing-error.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ export default createRule("vue-custom-block/no-parsing-error", {
2323
return {};
2424
}
2525
const sourceCode = getSourceCode(context);
26-
// eslint-disable-next-line no-restricted-properties -- Workaround for bug in vue-eslint-parser v9.3.1
26+
/* eslint-disable no-restricted-properties -- Workaround for bug in vue-eslint-parser v9.3.1 */
27+
// @ts-expect-error -- Workaround for bug in vue-eslint-parser v9.3.1
2728
const parserServices = context.parserServices ?? sourceCode.parserServices;
29+
/* eslint-enable no-restricted-properties -- Workaround for bug in vue-eslint-parser v9.3.1 */
2830
const parseError = parserServices.parseError;
2931
if (parseError) {
3032
return errorReportVisitor(context, parseError);

lib/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface RuleMetaData {
3535
messages: { [messageId: string]: string };
3636
fixable?: "code" | "whitespace";
3737
hasSuggestions?: boolean;
38-
schema: JSONSchema4 | JSONSchema4[];
38+
schema: false | JSONSchema4 | JSONSchema4[];
3939
deprecated?: boolean;
4040
replacedBy?: [];
4141
type: "problem" | "suggestion" | "layout";
@@ -66,7 +66,7 @@ export interface PartialRuleMetaData {
6666
messages: { [messageId: string]: string };
6767
fixable?: "code" | "whitespace";
6868
hasSuggestions?: boolean;
69-
schema: JSONSchema4 | JSONSchema4[];
69+
schema: false | JSONSchema4 | JSONSchema4[];
7070
deprecated?: boolean;
7171
replacedBy?: [];
7272
type: "problem" | "suggestion" | "layout";

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
"@types/natural-compare": "^1.4.0",
9292
"@types/node": "^20.0.0",
9393
"@types/semver": "^7.3.1",
94-
"@typescript-eslint/eslint-plugin": "^8.0.0",
95-
"@typescript-eslint/parser": "^8.0.0",
94+
"@typescript-eslint/eslint-plugin": "^8.5.0",
95+
"@typescript-eslint/parser": "^8.5.0",
9696
"dts-bundle": "^0.7.3",
9797
"env-cmd": "^10.1.0",
9898
"esbuild": "^0.23.0",
@@ -123,7 +123,7 @@
123123
"stylelint-stylus": "^1.0.0",
124124
"ts-node": "^10.0.0",
125125
"typescript": "~5.0.0",
126-
"typescript-eslint": "^8.0.0",
126+
"typescript-eslint": "^8.5.0",
127127
"vite-plugin-eslint4b": "^0.4.6",
128128
"vitepress": "^1.2.3",
129129
"vue-eslint-parser": "^9.0.0"

0 commit comments

Comments
 (0)