.eslintrc.cjs 524 B

12345678910111213141516171819
  1. module.exports = {
  2. env: {
  3. browser: true,
  4. es2021: true
  5. },
  6. extends: ['plugin:vue/vue3-essential', 'standard', 'prettier'],
  7. parserOptions: {
  8. ecmaVersion: 'latest',
  9. sourceType: 'module'
  10. },
  11. plugins: ['vue', 'prettier'],
  12. rules: {
  13. 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  14. 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  15. 'vue/multi-word-component-names': 'off',
  16. 'prettier/prettier': 'error'
  17. },
  18. ignorePatterns: ['**/index.html']
  19. }