Skip to content

Conversation

@cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Jun 8, 2015

Per the style guide:

Use uppercase variable names for imported modules

lib/cli.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we only enforce this rule on module global variables?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll look into it. It should be possible by inspecting parent nodes.

@cjihrig
Copy link
Contributor Author

cjihrig commented Jun 8, 2015

@hueniverse I added an option to the rule to only target assignments in the module's global scope.

@hueniverse
Copy link
Contributor

@cjihrig that should be the default so we don't need all these exception comments above.

@cjihrig
Copy link
Contributor Author

cjihrig commented Jun 9, 2015

Yep, it is now :-)

@geek geek added the feature New functionality or improvement label Jun 9, 2015
@geek geek added this to the 5.10.0 milestone Jun 9, 2015
@geek geek self-assigned this Jun 9, 2015
geek added a commit that referenced this pull request Jun 9, 2015
Enforce capitalization of imported module variable names
@geek geek merged commit 8a1f82e into hapijs:master Jun 9, 2015
@cjihrig cjihrig deleted the lint-require branch June 9, 2015 15:12
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New functionality or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants