Ende.lint.Plugin

interface ยท experimental

interface Ende.lint.Plugin

In your plugins file do something like

export default {
  name: "my-plugin",
  rules: {
    "no-foo": {
       create(ctx) {
         return {
            VariableDeclaration(node) {}
         }
       }
    }
  }
} satisfies Ende.lint.Plugin

Properties

name

name: string

rules

rules: Record<string, Rule>