Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented May 7, 2017

This adds the --lint-fix option to all generate commands which will execute a lint fix task on (and only on) the modified files resulting from the generate command. There is also an .angular-cli.json option defaults.lintFix to enable the option for the project or globally.

This feature was created via several commits due to several foundational changes that were required. As a bonus, the lint configuration now also allows the files option to be used without the project option.

Closes #6192

import { CliConfig } from '../models/config';

const chalk = require('chalk');
const EmberGenerateCommand = require('../ember-cli/lib/commands/generate');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean ../ember-cli/lib/commands/generate' is no longer necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.
A followup PR for general ember-cli cleanup is planned.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng generate should use tslint configuration
3 participants