Last change
on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
965 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | "use strict";
|
---|
| 2 | /**
|
---|
| 3 | * @license
|
---|
| 4 | * Copyright Google LLC All Rights Reserved.
|
---|
| 5 | *
|
---|
| 6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 7 | * found in the LICENSE file at https://angular.io/license
|
---|
| 8 | */
|
---|
| 9 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
| 10 | exports.LintCommand = void 0;
|
---|
| 11 | const architect_command_1 = require("../models/architect-command");
|
---|
| 12 | const MissingBuilder = `
|
---|
| 13 | Cannot find "lint" target for the specified project.
|
---|
| 14 |
|
---|
| 15 | You should add a package that implements linting capabilities.
|
---|
| 16 |
|
---|
| 17 | For example:
|
---|
| 18 | ng add @angular-eslint/schematics
|
---|
| 19 | `;
|
---|
| 20 | class LintCommand extends architect_command_1.ArchitectCommand {
|
---|
| 21 | constructor() {
|
---|
| 22 | super(...arguments);
|
---|
| 23 | this.target = 'lint';
|
---|
| 24 | this.multiTarget = true;
|
---|
| 25 | this.missingTargetError = MissingBuilder;
|
---|
| 26 | }
|
---|
| 27 | async initialize(options) {
|
---|
| 28 | if (!options.help) {
|
---|
| 29 | return super.initialize(options);
|
---|
| 30 | }
|
---|
| 31 | }
|
---|
| 32 | }
|
---|
| 33 | exports.LintCommand = LintCommand;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.