ember-template-lint-plugin-denylist
Version:
`ember-template-lint` plugin for setting attribute denylists
38 lines • 1.32 kB
TypeScript
declare module 'ember-template-lint' {
import { AST } from 'ember-template-recast';
interface LogArgument {
message: string;
line: number;
column: number;
endLine: number;
endColumn: number;
source: string;
isFixable?: boolean;
}
class Rule {
sourceForNode(nodeToPrint: AST.ElementNode | AST.TextNode | AST.MustacheStatement | AST.ConcatStatement): string;
config: any;
mode: 'fix';
log(argument: LogArgument): void;
}
class ASTHelpers {
static findAttribute(node: AST.ElementNode, attribute: string): AST.AttrNode;
}
function generateRuleTests(arguments: {
name: string;
groupingMethod: Function;
testMethod: Function;
config: Record<string, unknown> | boolean;
plugins: Record<string, unknown>[];
good?: (Record<string, unknown> | string)[];
bad?: (Record<string, unknown> | string)[];
skipDisabledTests?: boolean;
groupingMethodEach?: Function;
groupMethodBefore?: Function;
focusMethod?: () => void;
meta?: object;
}): void;
}
declare module 'ember-template-lint/lib/helpers/create-error-message';
declare module 'validate-peer-dependencies';
//# sourceMappingURL=ember-template-lint.d.ts.map