UNPKG

@nrwl/workspace

Version:

The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.

15 lines (14 loc) 770 B
import * as Lint from 'tslint'; import { IOptions } from 'tslint'; import * as ts from 'typescript'; import type { NxJsonConfiguration } from '@nrwl/devkit'; import { MappedProjectGraph } from '../utils/runtime-lint-utils'; import { TargetProjectLocator } from 'nx/src/utils/target-project-locator'; export declare class Rule extends Lint.Rules.AbstractRule { private readonly projectPath?; private readonly projectGraph?; private readonly targetProjectLocator?; private readonly workspaceLayout?; constructor(options: IOptions, projectPath?: string, projectGraph?: MappedProjectGraph, targetProjectLocator?: TargetProjectLocator, workspaceLayout?: NxJsonConfiguration['workspaceLayout']); apply(sourceFile: ts.SourceFile): Lint.RuleFailure[]; }