.eslintrc.json 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. "env": {
  3. "browser": true,
  4. "commonjs": true,
  5. "es6": true,
  6. "node": true
  7. },
  8. "extends": "standard",
  9. "globals": {
  10. "Atomics": "readonly",
  11. "SharedArrayBuffer": "readonly",
  12. "CODE_SUCCESS": "readonly",
  13. "CODE_UNKNOW_ERROT": "readonly",
  14. "CODE_NOT_EXIST_INTERFACE": "readonly",
  15. "CODE_PARAM_ERROR": "readonly",
  16. "CODE_INTER_ERROR": "readonly",
  17. "CODE_USER_LOGIN_FAIL": "readonly",
  18. "CODE_SIGN_ERROR": "readonly",
  19. "CODE_UNLOGIN_ERROR": "readonly",
  20. "CODE_NO_PERMITION": "readonly",
  21. "CODE_NORMAL_ERROR": "readonly",
  22. "CODE_DB_ERROR": "readonly",
  23. "CODE_REQUEST_TIMEOUT": "readonly",
  24. "CODE_REQUEST_ERROR": "readonly",
  25. "CODE_REDIS_ERROR": "readonly",
  26. "CODE_UNAUTH_ERROR": "readonly",
  27. "CODE_MSG_MAP":"readonly"
  28. },
  29. "parserOptions": {
  30. "ecmaVersion": 2018
  31. },
  32. "rules": {
  33. "eqeqeq":"off",
  34. "camelcase":"off",
  35. "no-new":"off"
  36. }
  37. }