.eslintrc.js 545 B

123456789101112131415161718192021
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true,
  5. },
  6. extends: [
  7. 'plugin:vue/vue3-essential',
  8. '@vue/airbnb',
  9. '@vue/typescript/recommended',
  10. ],
  11. parserOptions: {
  12. ecmaVersion: 2020,
  13. },
  14. rules: {
  15. 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  16. 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  17. 'import/prefer-default-export': 'off',
  18. 'max-len': ['error', { code: 140, ignoreTrailingComments: true }],
  19. 'linebreak-style': [0, 'error', 'windows'],
  20. },
  21. };