mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 15:02:11 +08:00
All TypeScript files have been updated to pass the new eslint-based linting checks. eslint compatible disabling comments have also been added in place of the previous tslint comments.
29 lines
727 B
TypeScript
29 lines
727 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC 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 { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
import { TslintFixTask } from '@angular-devkit/schematics/tasks'; // eslint-disable-line import/no-extraneous-dependencies
|
|
|
|
export default function (): Rule {
|
|
return (_: Tree, context: SchematicContext) => {
|
|
context.addTask(
|
|
new TslintFixTask(
|
|
{
|
|
rules: {
|
|
'max-line-length': [true, 80],
|
|
},
|
|
},
|
|
{
|
|
includes: '*.ts',
|
|
silent: false,
|
|
},
|
|
),
|
|
);
|
|
};
|
|
}
|