Skip to content
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

no-mixed-requires #126

Closed
eliasmalik opened this issue Sep 20, 2016 · 0 comments
Closed

no-mixed-requires #126

eliasmalik opened this issue Sep 20, 2016 · 0 comments

Comments

@eliasmalik
Copy link
Contributor

http://eslint.org/docs/rules/no-mixed-requires

Expect calls to require to be grouped by category to make it clear which modules are core, which are third party, etc.

Disallow calls on the same line as requires because they should just be a declaration of dependencies rather than part of the modules logic.

["error", { "grouping": true, "allowCall": false }]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants