mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
18 lines
407 B
TypeScript
18 lines
407 B
TypeScript
import * as Command from 'ember-cli/lib/models/command';
|
|
import * as LintTask from '../tasks/lint';
|
|
|
|
module.exports = Command.extend({
|
|
name: 'lint',
|
|
description: 'Lints code in existing project',
|
|
works: 'insideProject',
|
|
run: function () {
|
|
const lintTask = new LintTask({
|
|
ui: this.ui,
|
|
analytics: this.analytics,
|
|
project: this.project
|
|
});
|
|
|
|
return lintTask.run();
|
|
}
|
|
});
|