.eslintrc.yml 906 B

12345678910111213141516171819202122232425262728293031323334353637
  1. extends: "eslint:recommended"
  2. parserOptions:
  3. ecmaVersion: 8
  4. sourceType: "module"
  5. env:
  6. node: true
  7. es6: true
  8. rules:
  9. consistent-return: "error"
  10. curly: "error"
  11. default-case: "error"
  12. dot-notation: "error"
  13. eqeqeq: "error"
  14. no-extend-native: "error"
  15. no-implicit-coercion: "error"
  16. no-loop-func: "error"
  17. no-multi-spaces: "error"
  18. no-throw-literal: "error"
  19. global-require: "error"
  20. no-path-concat: "error"
  21. brace-style: ["error", "1tbs", {allowSingleLine: true}]
  22. camelcase: "error"
  23. consistent-this: ["error", "self"]
  24. indent: ["error", "tab", {SwitchCase: 1}]
  25. linebreak-style: ["error", "unix"]
  26. eol-last: "error"
  27. quotes: ["error", "single"]
  28. semi: "error"
  29. space-infix-ops: "error"
  30. space-unary-ops: "error"
  31. func-names: "warn"
  32. space-before-function-paren: "warn"
  33. no-spaced-func: "warn"
  34. keyword-spacing: "error"
  35. space-before-blocks: "error"
  36. no-console: "error"