import type { Plugin } from "#oxlint/plugins";

const plugin: Plugin = {
  meta: {
    name: "error-plugin",
  },
  rules: {
    error: {
      create(_context) {
        throw new Error("Whoops!");
      },
    },
  },
};

export default plugin;
