mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
9de9385fd1
Part of #18610. Our intent is to move `definePlugin`, `defineRule`, and `eslintCompatPlugin` to a separate package `@oxlint/plugins` (plural to avoid confusion with naming convention for plugins `oxlint-plugin-xxx`). So rename the current entry point which exports these functions from `oxlint/plugin` to `oxlint/plugins` (plural).
24 lines
358 B
TypeScript
24 lines
358 B
TypeScript
import type { Plugin } from "#oxlint/plugins";
|
|
|
|
const plugin: Plugin = {
|
|
meta: {
|
|
name: "options-invalid-plugin",
|
|
},
|
|
rules: {
|
|
options: {
|
|
meta: {
|
|
schema: [
|
|
{
|
|
enum: ["always", "never"],
|
|
},
|
|
],
|
|
},
|
|
create(_context) {
|
|
return {};
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default plugin;
|