.eslintrc.js 724 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. module.exports = {
  2. "env": {
  3. "mocha": true,
  4. "browser": true,
  5. "node": true,
  6. "es6": true
  7. },
  8. "extends": "eslint:recommended",
  9. "parserOptions": {
  10. "ecmaVersion": 2018
  11. },
  12. "rules": {
  13. "no-useless-escape": "off",
  14. "no-unsafe-finally": "warn",
  15. "no-unused-vars": "off",
  16. "no-console": "off",
  17. "no-mixed-spaces-and-tabs": "warn",
  18. "no-async-promise-executor": "warn",
  19. "indent": [
  20. "off",
  21. 2
  22. ],
  23. "linebreak-style": [
  24. "error",
  25. "unix"
  26. ],
  27. "semi": [
  28. "error",
  29. "always"
  30. ],
  31. "func-style": [
  32. "error",
  33. "declaration",
  34. {
  35. "allowArrowFunctions": true
  36. }
  37. ],
  38. 'no-console': ["error", {
  39. allow: ["warn", "error", "log"]
  40. }]
  41. },
  42. "globals": {
  43. "step": true,
  44. "xstep": true,
  45. }
  46. };