Files
NapCatQQ/.pnpm-store/v3/files/d4/0b576bcc81923edd30ea49585deadce67281407cb04efb9743682809a25c4230735514bb0bf9ab4b17167426d26cd5c2d21e0ffb21256ee55d99eee4d54daa
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

23 lines
664 B
Plaintext

import {
RuleContext,
RuleContextTypeOptions,
RuleDefinition,
} from "@eslint/core";
import { Linter, SourceCode, Rule } from "eslint";
import * as ESTree from "estree";
import { Rule } from "eslint";
export interface PluginRuleContext<
Options extends {} = { RuleOptions: RuleContextTypeOptions["RuleOptions"] },
> extends Rule.RuleContext {
options: Options extends { RuleOptions: infer T }
? T
: RuleContextTypeOptions["RuleOptions"];
}
export interface RuleModule<
Options extends {} = { RuleOptions: RuleContextTypeOptions["RuleOptions"] },
> extends Rule.RuleModule {
create(context: PluginRuleContext<Options>): Rule.NodeListener;
}