.eslintrc.yml 665 B

123456789101112131415161718192021222324252627282930313233
  1. env:
  2. es6: true
  3. node: true
  4. extends:
  5. - eslint:recommended
  6. - plugin:node/recommended
  7. - plugin:security/recommended
  8. plugins:
  9. - node
  10. - security
  11. root: true
  12. rules:
  13. node/no-deprecated-api: off
  14. node/no-unsupported-features/es-syntax: off
  15. node/no-unpublished-require: off
  16. security/detect-non-literal-fs-filename: off
  17. security/detect-object-injection: off
  18. eol-last: [error, always]
  19. eqeqeq: error
  20. no-alert: warn
  21. no-console: warn
  22. no-path-concat: error
  23. no-unused-vars: [error, {argsIgnorePattern: "^_|err|event|next|reject"}]
  24. no-var: error
  25. one-var: [error, never]
  26. prefer-const: error
  27. quotes: [error, single, {avoidEscape: true}]