.eslintrc.js 550 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. 'extends': [
  7. 'plugin:vue/essential',
  8. '@vue/standard'
  9. ],
  10. rules: {
  11. // 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  12. 'no-console': 'off',
  13. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  14. 'space-before-function-paren': ['error', {
  15. 'anonymous': 'always',
  16. 'named': 'never',
  17. 'asyncArrow': 'always'
  18. }],
  19. },
  20. parserOptions: {
  21. parser: 'babel-eslint'
  22. },
  23. globals: {
  24. 'process': true
  25. }
  26. }