Skip to content

Instantly share code, notes, and snippets.

@Gerhut
Created October 26, 2015 05:09
Show Gist options
  • Select an option

  • Save Gerhut/cdc021ca58febfa59ccf to your computer and use it in GitHub Desktop.

Select an option

Save Gerhut/cdc021ca58febfa59ccf to your computer and use it in GitHub Desktop.
requireMatchingFunctionName add allExcept: ['moduleExports'] option

When allExcept: ['moduleExports'] set, ignore no matching names of function declearation assignment to module.exports.

Valid:

module.exports = function foo() {}

module['exports'] = function bar() {}

k.module.exports = function exports() {}

Invalid:

k.module.exports = function baz() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment