.eslintrc.js 964 B

123456789101112131415161718192021222324252627282930313233
  1. module.exports = {
  2. root: true,
  3. parserOptions: {
  4. ecmaVersion: 2020,
  5. parser: 'babel-eslint',
  6. sourceType: 'module'
  7. },
  8. env: {
  9. browser: true,
  10. node: true,
  11. es6: true
  12. },
  13. globals: {
  14. XEUtils: true,
  15. g: true
  16. },
  17. extends: ['plugin:vue/essential', 'eslint:recommended', 'plugin:prettier/recommended'],
  18. plugins: ['prettier'],
  19. parser: 'vue-eslint-parser',
  20. // add your custom rules here
  21. //it is base on https://github.com/vuejs/eslint-config-vue
  22. rules: {
  23. 'prettier/prettier': ['error'],
  24. 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  25. 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  26. 'vue/multi-word-component-names': 'off',
  27. 'vue/no-reserved-component-names': 'off',
  28. 'no-unused-vars': [2, { vars: 'all', args: 'after-used' }],
  29. 'vue/no-v-for-template-key': 'off',
  30. 'vue/require-v-for-key': 'off',
  31. 'linebreak-style': [0,'error','windows',],
  32. }
  33. }