/** @file - Type declarations for "eslint-plugin-markdown" */ declare module "eslint-plugin-markdown" { import { type TSESLint } from "@typescript-eslint/utils"; import type { Linter } from "eslint"; interface EditorconfigPlugin extends TSESLint.Plugin { // configs?: // | Record< // string, // Linter.LegacyConfig | Linter.Config | Linter.Config[] // > /** | undefined; */ environments?: Record | undefined; languages: Record; processors: Record; rules: Record; configs: { recommended: Record; // processor: Record /** } */ processor: [ { name: string; plugins: TSESLint.ConfigType.Plugin; }, { name: string; files: (string | string[])[]; processor: string; }, { name: string; files: (string | string[])[]; languageOptions: { parserOptions: { ecmaFeatures: { impliedStrict: boolean; }; }; }; rules: Linter.RulesRecord; }, ]; }; } const plugin: EditorconfigPlugin; export default plugin; } // // import { Linter } from "eslint"; // import { Node } from "unist"; // // export interface RangeMap { // js: number; // md: number; // } // // export const configs: { // recommended: Linter.Config; // processor: Linter.Config; // }; // // export const processors: { // markdown: Linter.Processor; // };