UNPKG

eslint-config-aftership

Version:
43 lines (31 loc) 990 B
'use strict'; module.exports = { env: { node: true, }, rules: { // enforce return after a callback 'callback-return': 'off', // sometimes we need conditional require // like newrelic etc. // http://eslint.org/docs/rules/global-require 'global-require': 'off', // enforces error handling in callbacks (node environment) 'handle-callback-err': 'off', // disallow mixing regular variable and require declarations 'no-mixed-requires': 'error', // disallow use of new operator with the require function 'no-new-require': 'error', // disallow string concatenation with __dirname and __filename // http://eslint.org/docs/rules/no-path-concat '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', }, };