UNPKG

765 BTypeScriptView Raw
1import { Rule } from '@angular-devkit/schematics';
2export declare const enum Linter {
3 EsLint = "eslint",
4 None = "none"
5}
6export declare function generateProjectLint(projectRoot: string, tsConfigPath: string, linter: Linter, eslintFilePatterns: string[]): {
7 builder: string;
8 options: {
9 lintFilePatterns: string[];
10 };
11};
12interface AddLintFileOptions {
13 onlyGlobal?: boolean;
14 localConfig?: any;
15 extraPackageDeps?: {
16 dependencies: {
17 [key: string]: string;
18 };
19 devDependencies: {
20 [key: string]: string;
21 };
22 };
23 setParserOptionsProject?: boolean;
24}
25export declare function addLintFiles(projectRoot: string, linter: Linter, options?: AddLintFileOptions): Rule;
26export {};