.eslintrc.js 668 B

123456789101112131415161718192021222324
  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. 'no-param-reassign': [2, { props: false }],
  20. 'linebreak-style': [0, 'error', 'windows'],
  21. 'import/no-cycle': 0,
  22. '@typescript-eslint/no-this-alias': ['off'],
  23. },
  24. };