.eslintrc.js 369 B

1234567891011121314151617
  1. module.exports = {
  2. root: true,
  3. parserOptions: {
  4. sourceType: 'module'
  5. },
  6. parser: 'vue-eslint-parser',
  7. extends: ['plugin:vue/vue3-essential', 'plugin:vue/vue3-strongly-recommended', 'plugin:vue/vue3-recommended'],
  8. env: {
  9. browser: true,
  10. node: true,
  11. es6: true
  12. },
  13. rules: {
  14. 'no-console': 'off',
  15. 'comma-dangle': [2, 'never'] //禁止使用拖尾逗号
  16. }
  17. }