UNPKG

eslint-config-7geese

Version:

An eslint config to enforce JavaScript coding style at 7Geese.

31 lines (30 loc) 1.17 kB
module.exports = { env: { node: true, }, rules: { // enforce return after a callback 'callback-return': 'off', // disallow require() outside of the top-level module scope 'global-require': 'warn', // enforces error handling in callbacks (node environment) 'handle-callback-err': 'off', // https://eslint.org/docs/4.0.0/rules/no-buffer-constructor 'no-buffer-constructor': 'off', // 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 // https://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', }, };