.eslintrc.js 993 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. module.exports = {
  2. root: true,
  3. parserOptions: {
  4. parser: "babel-eslint"
  5. },
  6. env: {
  7. browser: true,
  8. },
  9. // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
  10. extends: ["plugin:vue/vue3-essential"],
  11. // required to lint *.vue files
  12. plugins: [
  13. "vue"
  14. ],
  15. // check if imports actually resolve
  16. settings: {
  17. "import/resolver": {
  18. webpack: {
  19. config: "build/webpack.base.conf.js"
  20. }
  21. }
  22. },
  23. // add your custom rules here
  24. rules: {
  25. // allow debugger during development
  26. "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
  27. "no-console": "off",
  28. "no-plusplus": "off",
  29. "no-unused-vars": "off",
  30. "arrow-parens": "off",
  31. "no-restricted-syntax": "off",
  32. "linebreak-style": ["off", "windows"],
  33. "max-len": ["warn", { code: 500 }],
  34. "semi": ["error", "always"],
  35. "quotes": ["error", "double"],
  36. // 'comma-dangle': ["error", "always"],
  37. }
  38. };