UNPKG

eslint-plugin-command

Version:

Comment-as-command for one-off codemod with ESLint

22 lines (19 loc) 520 B
import { c as createPluginWithCommands, d as defaultPlugin } from './shared/eslint-plugin-command.CMHfzflw.mjs'; import './shared/eslint-plugin-command.rddN-8UR.mjs'; import '@es-joy/jsdoccomment'; function config(options = {}) { const plugin = options.commands ? createPluginWithCommands(options) : defaultPlugin; const { name = "command" } = options; return { name, plugins: { [name]: plugin }, rules: { [`${name}/command`]: "error" } }; } export { config as default };