.eslintrc.cjs 781 B

12345678910111213141516171819202122232425262728293031323334
  1. module.exports = {
  2. root: true,
  3. env: {
  4. browser: true,
  5. node: true,
  6. es2021: true,
  7. },
  8. parser: 'vue-eslint-parser',
  9. parserOptions: {
  10. parser: '@babel/eslint-parser',
  11. requireConfigFile: false,
  12. ecmaVersion: 2022,
  13. sourceType: 'module',
  14. ecmaFeatures: {
  15. jsx: true,
  16. },
  17. },
  18. extends: [
  19. 'plugin:vue/recommended',
  20. 'eslint:recommended',
  21. 'prettier'
  22. ],
  23. plugins: ['vue'],
  24. rules: {
  25. 'no-console': 'off',
  26. 'no-debugger': 'warn',
  27. // relax unused vars to warnings for incremental cleanup
  28. 'no-unused-vars': 'warn',
  29. // project uses single-word component names in some places; allow for now
  30. 'vue/multi-word-component-names': 'off',
  31. // allow v-html usages but keep as warnings
  32. 'vue/no-v-html': 'warn'
  33. },
  34. }