node.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. 'use strict';
  2. module.exports = {
  3. env: {
  4. node: true,
  5. },
  6. rules: {
  7. /**
  8. * not enforce return after a callback
  9. * @see http://eslint.org/docs/rules/callback-return
  10. */
  11. 'callback-return': 'off',
  12. /**
  13. * not require all requires be top-level
  14. * @see http://eslint.org/docs/rules/global-require
  15. */
  16. 'global-require': 'off',
  17. /**
  18. * not enforces error handling in callbacks (node environment)
  19. * @see http://eslint.org/docs/rules/handle-callback-err
  20. */
  21. 'handle-callback-err': 'off',
  22. /**
  23. * allow mixing regular variable and require declarations
  24. * @see http://eslint.org/docs/rules/no-mixed-requires
  25. */
  26. 'no-mixed-requires': 'off',
  27. /**
  28. * allow use of new operator with the require function
  29. * @see http://eslint.org/docs/rules/no-new-require
  30. */
  31. 'no-new-require': 'off',
  32. /**
  33. * allow string concatenation with __dirname and __filename
  34. * @see http://eslint.org/docs/rules/no-path-concat
  35. */
  36. 'no-path-concat': 'off',
  37. /**
  38. * allow use of process.env
  39. * @see http://eslint.org/docs/rules/no-process-env
  40. */
  41. 'no-process-env': 'off',
  42. /**
  43. * allow process.exit()
  44. * @see http://eslint.org/docs/rules/no-process-exit
  45. */
  46. 'no-process-exit': 'off',
  47. /**
  48. * not restrict usage of specified node modules
  49. * @see http://eslint.org/docs/rules/no-restricted-modules
  50. */
  51. 'no-restricted-modules': 'off',
  52. /**
  53. * allow use of synchronous methods
  54. * @see http://eslint.org/docs/rules/no-sync
  55. */
  56. 'no-sync': 'off',
  57. },
  58. };