.eslintrc.js 532 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. root: true,
  3. globals: {
  4. BMapGL: true,
  5. BMapGLLib: true,
  6. BMAP_STATUS_SUCCESS: true
  7. },
  8. env: {
  9. node: true
  10. },
  11. extends: [
  12. 'plugin:vue/essential',
  13. '@vue/standard'
  14. ],
  15. parserOptions: {
  16. parser: 'babel-eslint'
  17. },
  18. rules: {
  19. 'eqeqeq': 0,
  20. 'no-prototype-builtins': 0,
  21. 'space-before-function-paren': 0,
  22. 'standard/no-callback-literal': 0,
  23. 'no-multiple-empty-lines': [0, { max: 2 }],
  24. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
  25. }
  26. }