Skip to content

lint

Interfaces

DataSubjectLintConfig

Defined in: src/lint/types.ts:35

Properties

piiFieldPatterns?
ts
optional piiFieldPatterns?: string[];

Defined in: src/lint/types.ts:37

registry?
ts
optional registry?: DataSubjectLintRegistryEntry[];

Defined in: src/lint/types.ts:36

requireTenantField?
ts
optional requireTenantField?: boolean;

Defined in: src/lint/types.ts:39

suppressions?
ts
optional suppressions?: DataSubjectLintSuppression[];

Defined in: src/lint/types.ts:38


DataSubjectLintFinding

Defined in: src/lint/types.ts:13

Properties

code
ts
code: DataSubjectLintCode;

Defined in: src/lint/types.ts:15

field?
ts
optional field?: string;

Defined in: src/lint/types.ts:17

message
ts
message: string;

Defined in: src/lint/types.ts:18

model
ts
model: string;

Defined in: src/lint/types.ts:16

severity
ts
severity: DataSubjectLintSeverity;

Defined in: src/lint/types.ts:14


DataSubjectLintRegistryEntry

Defined in: src/lint/types.ts:21

Properties

entityName
ts
entityName: string;

Defined in: src/lint/types.ts:22

fields
ts
fields: Record<string, PolicyEntry>;

Defined in: src/lint/types.ts:26

rowLevel?
ts
optional rowLevel?: "delete-row" | "delete-fields";

Defined in: src/lint/types.ts:25

subjectField
ts
subjectField: string;

Defined in: src/lint/types.ts:23

tenantField?
ts
optional tenantField?: string;

Defined in: src/lint/types.ts:24


DataSubjectLintReport

Defined in: src/lint/types.ts:42

Properties

findings
ts
findings: DataSubjectLintFinding[];

Defined in: src/lint/types.ts:44

ok
ts
ok: boolean;

Defined in: src/lint/types.ts:43


DataSubjectLintSuppression

Defined in: src/lint/types.ts:29

Properties

field?
ts
optional field?: string;

Defined in: src/lint/types.ts:31

model
ts
model: string;

Defined in: src/lint/types.ts:30

reason
ts
reason: string;

Defined in: src/lint/types.ts:32

Type Aliases

DataSubjectLintCode

ts
type DataSubjectLintCode =
  | "dsr_lint_unregistered_model"
  | "dsr_lint_missing_policy_field"
  | "dsr_lint_missing_tenant_field"
  | "dsr_lint_empty_suppression_reason"
  | "dsr_lint_invalid_policy"
  | "dsr_lint_subject_field_missing";

Defined in: src/lint/types.ts:5


DataSubjectLintSeverity

ts
type DataSubjectLintSeverity = "warning" | "error";

Defined in: src/lint/types.ts:3

References

formatLintReport

Re-exports formatLintReport


lintPrismaSchema

Re-exports lintPrismaSchema


parsePrismaSchema

Re-exports parsePrismaSchema


shouldFailLint

Re-exports shouldFailLint

Released under the MIT License.