Skip to content

feat(@schematics/angular): extend tslint:recommended #13213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 26, 2018

Conversation

cexbrayat
Copy link
Member

Updates the tslint.json file to extend to the tslint:recommended set.
Removes the rules that have the same value as the recommended one and explicitely deactivates some rules that are activated in the recommended set, but were not in ours.

Fixes #6179

cc @mgechev this is to start the discussion, feedback welcome

Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

From my end this LGTM.

Waiting for @mgechev to confirm.

"check-space"
],
"curly": true,
"adjacent-overload-signatures": false,
Copy link
Member

Choose a reason for hiding this comment

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

Looks like in the current CLI and tslint this has value true, lmk if I'm wrong.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, I don't think it is present in the current tslint.json, so I guess it's not activated (unless I'm missing something?).

@mgechev
Copy link
Member

mgechev commented Dec 20, 2018

object-literal-key-quotes should be also disabled.

Copy link
Member

@mgechev mgechev left a comment

Choose a reason for hiding this comment

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

@cexbrayat left one comment. Otherwise, LGTM

@hansl hansl added the target: major This PR is targeted for the next major release label Dec 20, 2018
Copy link
Member

@mgechev mgechev left a comment

Choose a reason for hiding this comment

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

object-literal-key-quotes seems the only config to fix.

Updates the `tslint.json` file to extend to the `tslint:recommended` set.
Removes the rules that have the same value as the recommended one and explicitely deactivates some rules that are activated in the recommended set, but were not in ours.
@cexbrayat cexbrayat force-pushed the feat/extend-tslint-recommended branch from 23945da to 6d72396 Compare December 21, 2018 10:03
@cexbrayat
Copy link
Member Author

@mgechev good catch: I added object-literal-key-quotes: false 👍

@hansl hansl merged commit 2f262bb into angular:master Dec 26, 2018
@cexbrayat cexbrayat deleted the feat/extend-tslint-recommended branch January 22, 2019 08:44
@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
target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[lint] tslint.json could extend tslint:recommended
5 participants