Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat(@schematics/angular): tslint migration for 8 - #13801

#13801
Merged
kyliau merged 1 commit into
angular:masterangular/angular-cli:masterfrom
mgechev:minko/migrate-codelyzermgechev/angular-cli:minko/migrate-codelyzerCopy head branch name to clipboard
Mar 27, 2019
Merged

feat(@schematics/angular): tslint migration for 8#13801
kyliau merged 1 commit into
angular:masterangular/angular-cli:masterfrom
mgechev:minko/migrate-codelyzermgechev/angular-cli:minko/migrate-codelyzerCopy head branch name to clipboard

Conversation

@mgechev

@mgechev mgechev commented Mar 1, 2019

Copy link
Copy Markdown
Member

Migration of the tslint.json file required by the refactoring of
codelyzer. For more information check this PR
mgechev/codelyzer#754.

// cc @rafaelss95, would you check if I've missed anything?

@mgechev
mgechev force-pushed the minko/migrate-codelyzer branch from df4d561 to 8ce7c3c Compare March 1, 2019 22:06
@mgechev
mgechev marked this pull request as ready for review March 1, 2019 22:33
Comment thread packages/schematics/angular/migrations/update-8/index.ts Outdated
Comment thread packages/schematics/angular/migrations/update-8/index.ts

@alan-agius4 alan-agius4 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

See above comments

@rafaelss95

Copy link
Copy Markdown

LGTM, @mgechev :)

'templates-no-negated-async': 'template-no-negated-async',
'trackBy-function': 'template-use-track-by-function',
'no-attribute-parameter-decorator': 'no-attribute-decorator',
'component-change-detection': 'prefer-on-push-component-change-detection',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This rule is not released yet so I think you can get rid of this.

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.

Nothing is released yet. I'd add a label "blocked" so we don't merge.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I mean that the rule component-change-detection doesn't need to be updated because it'll probably only be released on the next major of Codelyzer.

@mgechev
mgechev force-pushed the minko/migrate-codelyzer branch 2 times, most recently from 93e90a3 to 4bdd3e4 Compare March 4, 2019 19:57
Comment thread packages/schematics/angular/migrations/update-8/index.ts Outdated
Comment thread packages/schematics/angular/migrations/update-8/index.ts Outdated
@mgechev
mgechev force-pushed the minko/migrate-codelyzer branch 2 times, most recently from 327e71a to 544927e Compare March 7, 2019 05:21
Comment thread packages/schematics/angular/migrations/update-8/index.ts Outdated
Comment thread packages/schematics/angular/migrations/update-8/index.ts Outdated
Comment thread packages/schematics/angular/migrations/update-8/index_spec.ts Outdated
@mgechev
mgechev force-pushed the minko/migrate-codelyzer branch from 544927e to 367d3a7 Compare March 8, 2019 19:20
Comment thread scripts/test.ts Outdated
Comment thread packages/schematics/angular/migrations/update-8/index.ts
@mgechev
mgechev force-pushed the minko/migrate-codelyzer branch 2 times, most recently from 1ff591f to 243c2f1 Compare March 12, 2019 19:39
Migration of the `tslint.json` and `package.json` files required by the refactoring of
codelyzer. For more information check this PR
mgechev/codelyzer#754.
@mgechev
mgechev force-pushed the minko/migrate-codelyzer branch from 243c2f1 to 4e50a6e Compare March 12, 2019 20:00

@alan-agius4 alan-agius4 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

'templates-no-negated-async': 'template-no-negated-async',
'trackBy-function': 'template-use-track-by-function',
'no-attribute-parameter-decorator': 'no-attribute-decorator',
'max-inline-declarations': 'component-max-inline-declarations',

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.

The rule 'component-change-detection': 'prefer-on-push-component-change-detection' should be added now.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@wKoza this rule did not exist before. It's part of v5 beta, already with the "new" name.

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.

Okay, I didn't understand your previous comment and I see this rule since a lot of time.

const dependency: NodeDependency = {
type: NodeDependencyType.Dev,
name: 'codelyzer',
version: '^5.0.0',

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.

Currently, we use the tilde ~. this change is it wanted ?

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.

We've been careful with not introducing breaking changes between minor releases. I think we can have a ^.

@@ -0,0 +1,103 @@
/**

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.

why is this the index file? aren't there a bunch of migrations for 8? I'd expect this to be update-codelyzer or something

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.

I have a follow up PR for polyfills migration. I'll update the script there.

@mgechev mgechev added target: major This PR is targeted for the next major release and removed state: blocked labels Mar 27, 2019
@kyliau
kyliau merged commit 4b89fe2 into angular:master Mar 27, 2019
mgechev referenced this pull request in mgechev/codelyzer Apr 29, 2019
@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 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.