-
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: general refactor/fixes #797
Conversation
By the way, what's the convention about |
Not a big fan of packages called utils in general. If the file grows too much, we should probably think of a better way to organize the helpers. |
test/contextualDecoratorRule.spec.ts
Outdated
it('should succeed if a property is decorated with @ContentChild() decorator', () => { | ||
const source = ` | ||
const source = `Component |
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.
This doesn't feel right. How does typescript parses the file successfully?
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.
It was a bad copy and paste. Fixed.
…nforce file name casing
…interfaces/types names to Angular*
friendly bump :) |
@wKoza would you be able to help reviewing? I'm on the road for the next two weeks. |
@rafaelss95 , I'll take a look at this next week. |
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.
Some comments and LGTM.
This PR:
getDecoratorName
. Currently, it throws an error if you try to get a name of adecorator
that isn't a call expression; (porting from refactor(rule): rework prefer-inline-decorator to accept options #794)assertMultipleAnnotated
helper (Currently it doesn't work well as I mentioned in other issues/PRs);Boolean
checks to the utility functionisNotNullOrUndefined
(I've added a mini explanation in that file);camelCase
;variable-name
;utils
;Angular-*
;