UNPKG

eslint-config-walmart

Version:

A set of default eslint configurations, Walmart Labs style.

27 lines (25 loc) 845 B
"use strict"; module.exports = { rules: { // enforce return after a callback "callback-return": 2, // disallow require() outside of the top-level module scope "global-require": 1, // enforces error handling in callbacks (node environment) "handle-callback-err": 0, // disallow mixing regular variable and require declarations "no-mixed-requires": 2, // disallow use of new operator with the require function "no-new-require": 2, // disallow string concatenation with __dirname and __filename "no-path-concat": 0, // disallow use of process.env "no-process-env": 0, // disallow process.exit() "no-process-exit": 2, // restrict usage of specified node modules "no-restricted-modules": 0, // disallow use of synchronous methods (off by default) "no-sync": 0 } };