.eslintrc.js 585 B

1234567891011121314151617181920212223
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. extends: ['@megalo/standard', '@vue/prettier'],
  7. rules: {
  8. 'no-console': 'off',
  9. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  10. 'no-unused-vars': 'off',
  11. 'no-empty': ['error', { allowEmptyCatch: true }],
  12. 'prettier/prettier': ['error'],
  13. 'vue/custom-event-name-casing': 0
  14. },
  15. // parserOptions: {
  16. // parser: 'babel-eslint'
  17. // },
  18. globals: {
  19. Chart: true,
  20. AMap: true,
  21. FontAwesome: true
  22. }
  23. };