.eslintrc.js 509 B

12345678910111213141516171819202122232425
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. extends: ["plugin:vue/essential", "@vue/prettier"],
  7. rules: {
  8. "no-console": process.env.NODE_ENV === "production" ? "error" : "off",
  9. "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
  10. },
  11. parserOptions: {
  12. parser: "babel-eslint"
  13. },
  14. globals: {
  15. window: true,
  16. Vue: true,
  17. Vuex: true,
  18. VueRouter: true,
  19. ELEMENT: true,
  20. axios: true,
  21. CryptoJS: true,
  22. Qs: true,
  23. moment: true
  24. }
  25. };