UNPKG

eslint-plugin-kisszaya-fsd-plugin

Version:

Plugin to format code by fsd principles

33 lines (29 loc) 725 B
import { RuleMetaData } from "@typescript-eslint/utils/ts-eslint"; import { ProjectStructureSchema } from "../../types"; export const ALIAS_START_PATH = "src/"; export interface SchemaOptions { alias?: string; srcPath?: string projectStructure: ProjectStructureSchema; } export const SCHEMA: RuleMetaData<"", unknown>["schema"] = [ { type: "object", properties: { alias: { type: "string", }, srcPath: { type: "string", }, projectStructure: { type: "object", additionalProperties: { type: ["object", "integer", "string"], }, }, }, required: ["alias", "projectStructure"], additionalProperties: false, }, ];