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