All files / eslint-config-eloquence/src node.js

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44            1x                                                                          
'use strict'
 
/**
 * ESLint core 'Node.js and CommonJS' rules are specific to code running in
 * Node.js
 */
module.exports = {
  // Enforce return after a callback
  'callback-return': 'off',
 
  // Allow global require (sometimes required to prevent circular dependencies)
  'global-require': 'off',
 
  // Enforces error handling in callbacks (node environment)
  'handle-callback-err': 'off',
 
  // Disallow use of the Buffer() constructor
  'no-buffer-constructor': 'error',
 
  // Disallow mixing regular variable and require declarations
  'no-mixed-requires': ['off', false],
 
  // Disallow use of new operator with the require function
  'no-new-require': 'error',
 
  // Disallow string concatenation with __dirname and __filename
  'no-path-concat': 'error',
 
  // Disallow use of process.env
  'no-process-env': 'off',
 
  // Disallow process.exit()
  'no-process-exit': 'off',
 
  // Restrict usage of specified node modules
  'no-restricted-modules': 'off',
 
  // Disallow use of synchronous methods (off by default)
  'no-sync': 'off',
 
  // Require setting 'use strict' pragma in common JS node modules
  'strict': ['error', 'safe'],
}