Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

feat(node): Typescript return type any#17

Open
lucas-coelho wants to merge 1 commit intomasterfrom
feature/node-any
Open

feat(node): Typescript return type any#17
lucas-coelho wants to merge 1 commit intomasterfrom
feature/node-any

Conversation

@lucas-coelho
Copy link
Contributor

Changes

  • Warn if using as a return type.

Warn if using <any> as a return type.
@lucas-coelho lucas-coelho self-assigned this Oct 30, 2017

/** Warns when <any> is used as return type */
async typescriptAnyReturn() {
if (await changedFilesContainsRegex(/\)(\s|\n)*:(\s|\n)*(any|\w+<any>)(\s|\n)*{/g)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we reduce the scope of this check only for .ts files?

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.

2 participants