Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/reviewer/typescript/dontImportOwnIndex"

Index

Variables

Variables

Const DontImportOwnIndex

DontImportOwnIndex: ReviewerRegistration = patternMatchReviewer("Don't import own index.ts",{ globPattern: "**/*.ts", severity: "error" },{name: "import from index",antiPattern: /^import.*from ".*index"/,comment: `import from relevant file, not index"`,},)

Importing a project's index file is a recipe for circular import hell

Generated using TypeDoc