import path from 'node:path' import { beforeAll, describe, expect, it } from 'vitest' import { runOxlintPluginOnSources } from './oxlint-plugin-test-runner.mjs' const pluginPath = path.resolve('config/oxlint-plugins/ime-enter-guard.mjs') function lintSources(sources) { return runOxlintPluginOnSources({ pluginName: 'ime-enter-guard', pluginPath, sources, rules: { 'ime-enter-guard/require-ime-guard': 'warn' } }) } const violations = [ [ 'inline Enter on a raw input', "export const X = () => { if (e.key === 'Enter') go() }} />" ], [ 'Enter on a raw textarea', "export const X = () =>