Skip to content

Add option to adjust generated files via lint fix#6213

Merged
filipesilva merged 3 commits into
masterfrom
unknown repository
May 9, 2017
Merged

Add option to adjust generated files via lint fix#6213
filipesilva merged 3 commits into
masterfrom
unknown repository

Conversation

@clydin

@clydin clydin commented May 7, 2017

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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