UNPKG

@persagy2/eslint-plugin

Version:

一个适用于 vue3.x、typescript 项目的通用eslint预设插件

26 lines (22 loc) 730 B
import { ESLint, Linter } from 'eslint'; /** @persagy2/eslint-plugin 规则预设 */ declare const _default: ESLint.Plugin; interface ICreateConfig { /** * 校验策略 * * @default basic */ strategy?: 'basic' | 'style' | 'normal' | 'strict'; /** * 是否禁用 eslint检查 * * @description 开发阶段, 可以通过这个属性禁用 eslint 检查 */ disable?: boolean; /** 是否处于本地开发阶段 (本地开发时, 仅包含编码风格检查) */ dev?: boolean; } /** 创建 eslint校验规则配置 */ declare const createEslintConfig: (options: ICreateConfig) => Linter.Config; export { type ICreateConfig, createEslintConfig, _default as default };