.eslintrc.yml 659 B

12345678910111213141516171819202122232425
  1. env:
  2. node: true
  3. extends: 'eslint:recommended'
  4. rules:
  5. indent: [ 2, 2, { SwitchCase: 1 } ]
  6. no-trailing-spaces: 2
  7. quotes: [ 2, single, avoid-escape ]
  8. linebreak-style: [ 2, unix ]
  9. semi: [ 2, always ]
  10. valid-jsdoc: [ 2, { requireReturn: false } ]
  11. no-invalid-this: 2
  12. no-unused-vars: [ 2, { args: none } ]
  13. no-console: [ 2, { allow: [ warn, error ] } ]
  14. block-scoped-var: 2
  15. curly: [ 2, multi-or-nest, consistent ]
  16. dot-location: [ 2, property ]
  17. dot-notation: 2
  18. no-else-return: 2
  19. no-eq-null: 2
  20. no-fallthrough: 2
  21. no-return-assign: 2
  22. strict: [ 2, global ]
  23. no-use-before-define: [ 2, nofunc ]
  24. callback-return: 2
  25. no-path-concat: 2