.eslintrc.js 542 B

12345678910111213141516171819202122
  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. },
  14. // parserOptions: {
  15. // parser: 'babel-eslint'
  16. // },
  17. globals: {
  18. Chart: true,
  19. AMap: true,
  20. FontAwesome: true
  21. }
  22. };