Hans 601f9b38f8 feat(@angular/cli): move angular-cli to @angular/cli (#4328)
This release is otherwise identical to beta.28.
2017-02-01 18:19:50 -08:00

30 lines
750 B
TypeScript

const Command = require('../ember-cli/lib/models/command');
export interface LintCommandOptions {
fix?: boolean;
format?: string;
force?: boolean;
}
export default Command.extend({
name: 'lint',
aliases: ['l'],
description: 'Lints code in existing project',
works: 'insideProject',
availableOptions: [
{ name: 'fix', type: Boolean, default: false },
{ name: 'force', type: Boolean, default: false },
{ name: 'format', alias: 't', type: String, default: 'prose' }
],
run: function (commandOptions: LintCommandOptions) {
const LintTask = require('../tasks/lint').default;
const lintTask = new LintTask({
ui: this.ui,
project: this.project
});
return lintTask.run(commandOptions);
}
});