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

32 lines (31 loc) 843 B
import { add, unique } from "./src/rules/index.js"; import packagejson from './package.json' with { type: 'json' }; export default function createPlugin(options) { const rules = { add: add(options), unique: unique(options), }; const plugin = { meta: { name: '@yasanchezz/eslint-plugin-vue-data-testid', version: packagejson.version }, rules, configs: { get recommended() { return recommended; } }, }; const recommended = [{ plugins: { 'vue-data-testid': plugin, }, rules: { 'vue-data-testid/add': 'error', 'vue-data-testid/unique': 'warn', } }]; return plugin; } export * from "./src/types.js";