-
Notifications
You must be signed in to change notification settings - Fork 235
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
refactor: bump packages versions #784
Conversation
This will take a while to review. It'll be very helpful if you can separate it into multiple PRs or at least multiple commits so I can review them in a sequence? |
Done, @mgechev. |
Wow, that was fast! :) |
src/noInputRenameRule.ts
Outdated
@@ -90,17 +92,15 @@ export class InputMetadataWalker extends NgWalker { | |||
(propertyAlias !== propertyName && | |||
this.directiveSelectors && | |||
this.directiveSelectors.some(x => new RegExp(`^${x}((${toTitleCase(propertyName)}$)|(?=$))`).test(propertyAlias))) || | |||
(whiteListAliases.has(propertyAlias) && propertyName === kebabToCamelCase(propertyAlias)) | |||
(whiteListAliases.has(propertyAlias) && propertyName === camelize(propertyAlias)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kebabToCamelCase
is more semantically correct. We will not be able to camelize
an arbitrary string. Would you mind reverting this name change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem. I did it because I saw that TSLint has already a function to camelize strings.
@rafaelss95 thanks for updating the AST traversal from visitors to functions! |
Currently we maintain 2
lock
files, but once you try to executeyarn
withyarn.lock
andpackage-lock.json
, you get the following message:To fix this, I've decided to remove the
package-lock.json
. If you prefer to usenpm
, we can removeyarn.lock
instead.Summary:
Removed unused packages:
@types/less
;minimalist
;Packages that can't be updated because break the rules/tests:
chai-spies
;source-map
;Move git hooks from package.json to
.huskyrc.json
file.Since TSLint is also being upgraded, some rules, which extends
RuleWalker
directly, were reworked to useWalkContext
instead (About RuleWalker #777).NgWalker
andSourceMappingVisitor
extends
theRuleWalker
and for now thedeprecation
rule for theextends
line was just disabled.Some Typescript errors are caught by the newer version and fixed properly.
The tests are green ✅