UNPKG

@yasanchezz/eslint-plugin-vue-data-testid

Version:

An `eslint` plugin for checking accessibility rules from within `.vue` files. Add `data-testid` to use better behavior testing

17 lines (16 loc) 537 B
export type DataTestidOptions = { nodeName: string; filepath: string; filename: string; isRoot: boolean; className?: string; classNames?: string[]; }; export type BuildDataTestid = (options: DataTestidOptions) => string | undefined; export type IgnoreNode = (options: DataTestidOptions) => boolean; export type AttributeName = string | ((options: DataTestidOptions) => string); export type PluginOptions = { attributeName?: AttributeName; buildDataTestid: BuildDataTestid; ignoreNode?: IgnoreNode; };