eslint-plugin-complete
Version:
An ESLint plugin that contains useful rules.
13 lines • 1.15 kB
TypeScript
import type { TSESTree } from "@typescript-eslint/utils";
import { ESLintUtils } from "@typescript-eslint/utils";
import type { MyPluginDocs } from "./interfaces/MyPluginDocs.js";
export declare function areStringsEqualExcludingTrailingSpaces(string1: string, string2: string): boolean;
/** @see https://typescript-eslint.io/developers/custom-rules#extra-rule-docs-types */
export declare const createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, MyPluginDocs>>) => ESLintUtils.RuleModule<MessageIds, Options, MyPluginDocs, ESLintUtils.RuleListener>;
/**
* From: https://stackoverflow.com/questions/13627308/add-st-nd-rd-and-th-ordinal-suffix-to-a-number
*/
export declare function getOrdinalSuffix(i: number): string;
export declare function getParentFunction(node: TSESTree.Node): TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | undefined;
export declare function hasURL(text: string): boolean;
//# sourceMappingURL=utils.d.ts.map