.eslintrc.js 610 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. 'prettier/prettier': [
  12. 'error',
  13. {
  14. printWidth: 160,
  15. tabWidth: 2,
  16. semi: true,
  17. singleQuote: true,
  18. trailingComma: 'all',
  19. bracketSpacing: true,
  20. arrowParens: 'avoid',
  21. },
  22. ],
  23. 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  24. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  25. },
  26. };