.eslintrc.js 569 B

1234567891011121314151617181920212223242526272829303132
  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. 'error',
  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. jsxBracketSameLine: true,
  24. printWidth: 160,
  25. },
  26. ],
  27. },
  28. parserOptions: {
  29. parser: 'babel-eslint',
  30. },
  31. };