.eslintrc.js 779 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // https://eslint.org/docs/user-guide/configuring
  2. module.exports = {
  3. root: true,
  4. env: {
  5. node: true,
  6. },
  7. extends: ['plugin:vue/essential', '@vue/prettier'],
  8. plugins: ['vue'],
  9. rules: {
  10. 'max-len': [
  11. 'warn',
  12. {
  13. code: 250,
  14. },
  15. ],
  16. 'no-unused-vars': 'off',
  17. 'no-console': 'off',
  18. 'prettier/prettier': [
  19. 'warn',
  20. {
  21. singleQuote: true,
  22. trailingComma: 'es5',
  23. bracketSpacing: true,
  24. jsxBracketSameLine: true,
  25. printWidth: 160,
  26. },
  27. ],
  28. 'vue/no-v-for-template-key': 'off',
  29. 'vue/no-template-key': 'off',
  30. 'vue/no-v-model-argument': 'off',
  31. 'vue/no-mutating-props': 'off',
  32. 'vue/no-unused-vars': 'off',
  33. },
  34. parserOptions: {
  35. parser: 'babel-eslint',
  36. },
  37. };