.eslintrc.js 873 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. globals: {
  7. __static: true,
  8. EXIF: true,
  9. AMap: true,
  10. tracking:true,
  11. pinyinUtil:true,
  12. faceapi:true
  13. },
  14. 'extends': [
  15. 'plugin:vue/strongly-recommended',
  16. '@vue/standard'
  17. ],
  18. 'rules': {
  19. // allow async-await
  20. 'generator-star-spacing': 'off',
  21. // allow debugger during development
  22. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  23. 'vue/html-self-closing': ['error', {
  24. 'html': {
  25. 'void': 'never',
  26. 'normal': 'any',
  27. 'component': 'any'
  28. },
  29. 'svg': 'always',
  30. 'math': 'always'
  31. }],
  32. 'vue/name-property-casing':'off',
  33. 'vue/html-closing-bracket-newline': 'off',
  34. 'vue/component-name-in-template-casing': 'off',
  35. 'camelcase':'off'
  36. },
  37. parserOptions: {
  38. parser: 'babel-eslint'
  39. }
  40. }