import type { LocalRuleOptions } from '../index'; import { error } from '../constants'; import { defineMiddleware } from '../middleware'; const customRules: Partial = { 'custom/no-import-dot': error, 'custom/restrict-template-expressions': error, }; export const custom = defineMiddleware((_, { addRules }) => { addRules(customRules); });