.eslintrc.js 633 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true,
  5. },
  6. extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"],
  7. parserOptions: {
  8. parser: "babel-eslint",
  9. },
  10. rules: {
  11. "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
  12. "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
  13. },
  14. overrides: [
  15. {
  16. files: [
  17. "**/__tests__/*.{j,t}s?(x)",
  18. "**/tests/unit/**/*.spec.{j,t}s?(x)",
  19. ],
  20. env: {
  21. jest: true,
  22. },
  23. },
  24. ],
  25. };