UNPKG

770 BTypeScriptView Raw
1import * as Lint from 'tslint';
2import { IOptions } from 'tslint';
3import * as ts from 'typescript';
4import type { NxJsonConfiguration } from '@nrwl/devkit';
5import { MappedProjectGraph } from '../utils/runtime-lint-utils';
6import { TargetProjectLocator } from 'nx/src/utils/target-project-locator';
7export declare class Rule extends Lint.Rules.AbstractRule {
8 private readonly projectPath?;
9 private readonly projectGraph?;
10 private readonly targetProjectLocator?;
11 private readonly workspaceLayout?;
12 constructor(options: IOptions, projectPath?: string, projectGraph?: MappedProjectGraph, targetProjectLocator?: TargetProjectLocator, workspaceLayout?: NxJsonConfiguration['workspaceLayout']);
13 apply(sourceFile: ts.SourceFile): Lint.RuleFailure[];
14}