You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
1234567891011121314151617181920212223242526
  1. module.exports = {
  2. root: true,
  3. 'extends': [
  4. 'plugin:vue/essential',
  5. // '@vue/standard'
  6. ],
  7. rules: {
  8. // allow async-await
  9. 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  10.     'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  11.     "no-unused-vars": 'off',
  12. 'generator-star-spacing': 'off',
  13. // allow debugger during development
  14. // 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  15. 'vue/no-parsing-error': [2, {
  16. 'x-invalid-end-tag': false
  17. }],
  18. 'no-undef': 'off',
  19. 'camelcase': 'off'
  20. },
  21. parserOptions: {
  22. parser: 'babel-eslint'
  23. }
  24. }