Hans d67a4bf535 feat(@angular-devkit/schematics): allow tslintfix task on files
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.
2018-07-25 21:27:47 -07:00

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;