mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 03:23:57 +08:00
Before we only allowed tsconfig files (with includes added). This is necessary for the lint fixing for schematics to target specific files. Also added a feature that look for the tslint.json file if no tslint.json file or configuration object was passed. Skipping the first argument to the task constructor will look for the tslint closest to EVERY files being linted.
27 lines
613 B
TypeScript
27 lines
613 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { JsonObject } from '@angular-devkit/core';
|
|
|
|
export const TslintFixName = 'tslint-fix';
|
|
|
|
export interface TslintFixTaskOptionsBase {
|
|
silent?: boolean;
|
|
format?: string;
|
|
tsConfigPath?: string;
|
|
|
|
ignoreErrors?: boolean;
|
|
|
|
includes?: string | string[];
|
|
files?: string | string[];
|
|
|
|
tslintPath?: string;
|
|
tslintConfig?: JsonObject;
|
|
}
|
|
|
|
export type TslintFixTaskOptions = TslintFixTaskOptionsBase;
|