.eslintrc.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. module.exports = {
  2. extends: ["airbnb-base", "plugin:vue/recommended", "standard"],
  3. parserOptions: {
  4. parser: "babel-eslint"
  5. },
  6. rules: {
  7. "import/no-unresolved": 0,
  8. "no-new": 0,
  9. "linebreak-style": 0,
  10. "prefer-template": 0,
  11. "arrow-body-style": 1,
  12. "no-var": 0,
  13. "one-var": 0,
  14. "no-underscore-dangle": 0,
  15. "func-names": 0,
  16. "no-param-reassign": 0,
  17. "import/no-extraneous-dependencies": 0,
  18. "no-debugger": 0,
  19. camelcase: 0,
  20. eqeqeq: 0,
  21. "max-len": [1, { code: 200 }],
  22. "no-plusplus": 0,
  23. "no-unused-expressions": 0,
  24. "no-restricted-syntax": 0,
  25. "no-multi-assign": 0,
  26. "no-bitwise": 0,
  27. "import/prefer-default-export": 0,
  28. "vue/no-unused-vars": ["off"],
  29. "vue/no-multiple-template-root": ["off"],
  30. "vue/max-attributes-per-line": ["off"],
  31. "vue/html-self-closing": ["error", {
  32. "html": {
  33. "void": "never",
  34. "normal": "any",
  35. "component": "any"
  36. },
  37. "svg": "always",
  38. "math": "always"
  39. }]
  40. },
  41. parserOptions: {
  42. ecmaVersion: 6
  43. },
  44. env: {
  45. browser: 1,
  46. es6: 1
  47. },
  48. plugins: ["vue", "import"]
  49. };