UNPKG

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