.eslintrc.js 619 B

12345678910111213141516171819202122232425
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. extends: ['plugin:vue/essential', '@vue/prettier'],
  7. rules: {
  8. 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  9. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  10. 'no-unused-vars': [
  11. 'error',
  12. { vars: 'all', args: 'none', ignoreRestSiblings: false }
  13. ],
  14. 'vue/no-parsing-error': [2, { 'x-invalid-end-tag': false }],
  15. 'vue/no-use-v-if-with-v-for': [
  16. 'error',
  17. {
  18. allowUsingIterationVar: true
  19. }
  20. ]
  21. },
  22. parserOptions: {
  23. parser: 'babel-eslint'
  24. }
  25. }