.eslintrc.js 491 B

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. "extends": [
  7. "plugin:vue/essential",
  8. "@vue/standard"
  9. ],
  10. rules: {
  11. "no-console": "off",
  12. "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
  13. "quotes": [
  14. 1,
  15. "double"
  16. ],
  17. "semi": [
  18. 1,
  19. "always"
  20. ],
  21. "space-before-function-paren": 0,
  22. "no-useless-escape": 0
  23. },
  24. parserOptions: {
  25. parser: "babel-eslint"
  26. },
  27. "globals":{
  28. "lx": true
  29. }
  30. };