.eslintrc.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. env:
  2. node: true
  3. es6: true
  4. extends:
  5. - "eslint:recommended"
  6. - prettier
  7. parserOptions:
  8. ecmaVersion: 2018
  9. rules:
  10. block-scoped-var: error
  11. dot-location: [error, property]
  12. dot-notation: error
  13. eqeqeq: [error, smart]
  14. id-match: error
  15. linebreak-style: [error, unix]
  16. no-bitwise: error
  17. no-cond-assign: error
  18. no-console: 0
  19. no-debugger: error
  20. no-duplicate-case: error
  21. no-duplicate-imports: error
  22. no-else-return: error
  23. no-empty: error
  24. no-eval: error
  25. no-invalid-this: error
  26. no-eq-null: error
  27. no-fallthrough: error
  28. no-new-wrappers: error
  29. no-path-concat: error
  30. no-redeclare: error
  31. no-return-assign: error
  32. no-sequences: error
  33. no-template-curly-in-string: error
  34. no-trailing-spaces: error
  35. no-undef-init: error
  36. no-unsafe-finally: error
  37. no-unused-vars: [error, args: none]
  38. no-use-before-define: [error, nofunc]
  39. no-useless-escape: 0
  40. no-var: error
  41. no-void: error
  42. prefer-arrow-callback: error
  43. prefer-const: error
  44. radix: error
  45. use-isnan: error
  46. valid-jsdoc: [error, requireReturn: false]