UNPKG

eslint-config-airbnb-base

Version:

Airbnb's base JS ESLint config, following our styleguide

40 lines (29 loc) 958 B
module.exports = { env: { node: true }, rules: { // enforce return after a callback 'callback-return': 0, // require all requires be top-level // http://eslint.org/docs/rules/global-require 'global-require': 2, // enforces error handling in callbacks (node environment) 'handle-callback-err': 0, // disallow mixing regular variable and require declarations 'no-mixed-requires': [0, false], // disallow use of new operator with the require function 'no-new-require': 2, // disallow string concatenation with __dirname and __filename // http://eslint.org/docs/rules/no-path-concat 'no-path-concat': 2, // disallow use of process.env 'no-process-env': 0, // disallow process.exit() 'no-process-exit': 0, // restrict usage of specified node modules 'no-restricted-modules': 0, // disallow use of synchronous methods (off by default) 'no-sync': 0, } };