select-dom
Version:
Lightweight querySelector/All/closest wrapper that returns an array and optionally throws if elements are not found
31 lines (30 loc) • 929 B
TypeScript
import type { TSESLint } from '@typescript-eslint/utils';
export type PreferSelectDomRuleOptions = {
allowReadabilityExceptions?: boolean;
};
type MessageIds = 'useSelectDom';
type Options = [PreferSelectDomRuleOptions?];
declare const plugin: {
rules: {
prefer: {
meta: {
type: string;
fixable: string;
messages: {
useSelectDom: string;
};
schema: {
type: string;
additionalProperties: boolean;
properties: {
allowReadabilityExceptions: {
type: string;
};
};
}[];
};
create(context: Readonly<TSESLint.RuleContext<MessageIds, Options>>): TSESLint.RuleListener;
};
};
};
export default plugin;